issue #1056: modify code according new code after pull

This commit is contained in:
minggo 2012-03-20 17:27:06 +08:00
parent 7ccb38556e
commit 382e4e7eb8
6 changed files with 18 additions and 7 deletions

View File

@ -28,6 +28,7 @@ cocoa/CCAffineTransform.cpp \
cocoa/CCGeometry.cpp \
cocoa/CCAutoreleasePool.cpp \
cocoa/CCData.cpp \
cocoa/CCDictionary.cpp \
cocoa/CCNS.cpp \
cocoa/CCObject.cpp \
cocoa/CCSet.cpp \
@ -37,9 +38,6 @@ CCDirector.cpp \
effects/CCGrabber.cpp \
effects/CCGrid.cpp \
extensions/CCNotificationCenter.cpp \
gles2/CCGLProgram.cpp \
gles2/ccGLStateCache.cpp \
gles2/CCShaderCache.cpp \
kazmath/src/aabb.c \
kazmath/src/mat3.c \
kazmath/src/mat4.c \
@ -90,6 +88,9 @@ platform/android/jni/SystemInfoJni.cpp \
platform/android/jni/TouchesJni.cpp \
script_support/CCScriptSupport.cpp \
shaders/ccShaders.cpp \
shaders/CCGLProgram.cpp \
shaders/ccGLStateCache.cpp \
shaders/CCShaderCache.cpp \
sprite_nodes/CCAnimation.cpp \
sprite_nodes/CCAnimationCache.cpp \
sprite_nodes/CCSprite.cpp \

View File

@ -89,8 +89,8 @@ public:
// pElement = (CCDictElement*)pElement->hh.next)
#define CCDICT_FOREACH(__dict__, __el__) \
CCDictElement* ##__dict__##__el__##tmp = NULL; \
HASH_ITER(hh, (__dict__)->m_pElements, __el__, ##__dict__##__el__##tmp)
CCDictElement* tmp##__dict____el__ = NULL; \
HASH_ITER(hh, (__dict__)->m_pElements, __el__, tmp##__dict____el__)
class CC_DLL CCDictionary : public CCObject

View File

@ -33,6 +33,8 @@ THE SOFTWARE.
#include "../platform/CCSAXParser.h"
#include <string>
NS_CC_BEGIN
class CCTMXObjectGroup;

View File

@ -27,6 +27,8 @@ NS_CC_BEGIN;
#include "CCCommon.h"
#include "jni/SystemInfoJni.h"
using namespace std;
// record the resource path
static string s_strResourcePath = "";

View File

@ -45,6 +45,12 @@ namespace cocos2d {
#define DECLTYPE(x) (__typeof(x))
#endif
#ifdef ANDROID
#define NO_DECLTYPE
#undef DECLTYPE
#define DECLTYPE(x)
#endif
#ifdef NO_DECLTYPE
#define DECLTYPE_ASSIGN(dst,src) \
do { \

View File

@ -268,7 +268,7 @@ void CCTextureAtlas::updateQuad(ccV3F_C4B_T2F_Quad *quad, unsigned int index)
{
CCAssert( index >= 0 && index < m_uCapacity, "updateQuadWithTexture: Invalid index");
m_uTotalQuads = max( index+1, m_uTotalQuads);
m_uTotalQuads = MAX( index+1, m_uTotalQuads);
m_pQuads[index] = *quad;
@ -404,7 +404,7 @@ bool CCTextureAtlas::resizeCapacity(unsigned int newCapacity)
return true;
// update capacity and totolQuads
m_uTotalQuads = min(m_uTotalQuads, newCapacity);
m_uTotalQuads = MIN(m_uTotalQuads, newCapacity);
m_uCapacity = newCapacity;
void * tmpQuads = NULL;