Projects > cpp > Issues > Bug #3065

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

CCRect conversion in jsb inconsistency

Bug #3065 [Rejected]
Xrmo 2013-10-24 19:04 . Updated almost 3 years ago

CCRects when used through jsb are converted as an object with x/y/width/height properties (in ccrect_to_jsval) but the html5 and c++ api has an ‘origin’ CCPoint property and a ‘size’ CCSize property.

ricardo 2013-10-24 21:49
  • Target version set to 3.0-alpha1
Xrmo 2013-10-25 22:09
Xrmo 2013-10-25 22:11

I’ve found that cc.*RectApplyAffineTransformIn receives a cc.Rect and adds x/y/width/height properties, and sometimes that properties are used in cocos2d-html5 code.
Is this correct? Shouldn’t cc.*RectApplyAffineTransformIn modify origin and size of the received cc.Rect?

zhangxm 2013-11-16 10:06
  • Assignee set to WenHai
zhangxm 2013-11-16 10:52
  • Target version changed from 3.0-alpha1 to Candidate
WenHai 2013-12-16 14:50
  • Status changed from New to Closed
  • Target version changed from Candidate to 3.0-beta
zhangxm 2014-01-07 03:13
  • Status changed from Closed to Rejected

Atom PDF

Start date:2013-10-24
Due date:
% Done:


Target version:3.0-beta

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.