mirror of https://github.com/axmolengine/axmol.git
Merge branch 'master' of https://github.com/cocos2d/cocos2d-x
This commit is contained in:
commit
297e32c20d
|
@ -66,6 +66,7 @@ static tinyxml2::XMLElement* getXMLNodeForKey(const char* pKey, tinyxml2::XMLEle
|
|||
break;
|
||||
}
|
||||
xmlDoc->Parse(pXmlBuffer);
|
||||
delete[] pXmlBuffer;
|
||||
// get root node
|
||||
*rootNode = xmlDoc->RootElement();
|
||||
if (NULL == *rootNode)
|
||||
|
|
|
@ -81,6 +81,7 @@ static tinyxml2::XMLElement* getXMLNodeForKey(const char* pKey, tinyxml2::XMLDoc
|
|||
break;
|
||||
}
|
||||
xmlDoc->Parse(pXmlBuffer);
|
||||
delete[] pXmlBuffer;
|
||||
// get root node
|
||||
rootNode = xmlDoc->RootElement();
|
||||
if (NULL == rootNode)
|
||||
|
|
|
@ -82,6 +82,7 @@ static tinyxml2::XMLElement* getXMLNodeForKey(const char* pKey, tinyxml2::XMLDoc
|
|||
break;
|
||||
}
|
||||
xmlDoc->Parse(pXmlBuffer);
|
||||
delete[] pXmlBuffer;
|
||||
// get root node
|
||||
rootNode = xmlDoc->RootElement();
|
||||
if (NULL == rootNode)
|
||||
|
|
|
@ -1040,9 +1040,16 @@ CCArray* CCBReader::getAnimationManagersForNodes() {
|
|||
Static functions
|
||||
************************************************************************/
|
||||
|
||||
static float __ccbResolutionScale = 1.0f;
|
||||
|
||||
float CCBReader::getResolutionScale()
|
||||
{
|
||||
return 1;
|
||||
return __ccbResolutionScale;
|
||||
}
|
||||
|
||||
void CCBReader::setResolutionScale(float scale)
|
||||
{
|
||||
__ccbResolutionScale = scale;
|
||||
}
|
||||
|
||||
NS_CC_EXT_END;
|
||||
|
|
|
@ -270,6 +270,7 @@ public:
|
|||
void addDocumentCallbackNode(CCNode *node);
|
||||
|
||||
static float getResolutionScale();
|
||||
static void setResolutionScale(float scale);
|
||||
|
||||
CCNode* readFileWithCleanUp(bool bCleanUp, CCDictionary* am);
|
||||
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
#include <jni.h>
|
||||
#include <android/log.h>
|
||||
|
||||
#include "HelloWorldScene.h"
|
||||
|
||||
#define LOG_TAG "main"
|
||||
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
643c72abe675dc711e46f2dd6b14187713cfb8d3
|
||||
3ff60497346cab1d4592901c3a03048c34bf725a
|
|
@ -1 +1 @@
|
|||
Subproject commit bffc3adca972b977b6d22888e23b58cbe3d17d97
|
||||
Subproject commit 6e3124f76cde92091615793137dbd2a1c451dac5
|
Loading…
Reference in New Issue