diff --git a/cocos2dx/cocoa/CCGeometry.cpp b/cocos2dx/cocoa/CCGeometry.cpp index cea6a9ae2c..3560a4d3b5 100644 --- a/cocos2dx/cocoa/CCGeometry.cpp +++ b/cocos2dx/cocoa/CCGeometry.cpp @@ -119,8 +119,8 @@ CCRect& CCRect::operator= (const CCRect& other) void CCRect::setRect(float x, float y, float width, float height) { - // Only support that, the width and height > 0 - CCAssert(width >= 0.0f && height >= 0.0f, "width and height of Rect must not less than 0."); + // CGRect can support width<0 or height<0 + // CCAssert(width >= 0.0f && height >= 0.0f, "width and height of Rect must not less than 0."); origin.x = x; origin.y = y;