mirror of https://github.com/axmolengine/axmol.git
Merge pull request #484 from minggo/master
fixed #689: the width & height of CCRect should big or equal to 0
This commit is contained in:
commit
3487b074ea
|
@ -77,7 +77,7 @@ CCRect::CCRect(void)
|
|||
CCRect::CCRect(float x, float y, float width, float height)
|
||||
{
|
||||
// Only support that, the width and height > 0
|
||||
assert(width > 0 && height > 0);
|
||||
assert(width >= 0 && height >= 0);
|
||||
|
||||
origin.x = x;
|
||||
origin.y = y;
|
||||
|
|
Loading…
Reference in New Issue