Projects > cpp > Issues > Bug #1440

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

Create Issue on Github

CCSprite::displayFrame() uses wrong offset to create a sprite frame

Bug #1440 [Closed]
zhangxm 2012-08-22 02:24 . Updated over 4 years ago
CCSpriteFrame* CCSprite::displayFrame(void)
{
    return CCSpriteFrame::createWithTexture(m_pobTexture,
                                           CC_RECT_POINTS_TO_PIXELS(m_obRect),
                                           m_bRectRotated,
                                           m_obUnflippedOffsetPositionFromCenter,
                                           CC_SIZE_POINTS_TO_PIXELS(m_tContentSize));
}

m_obUnflippedOffsetPositionFromCenter is measured in point, should translated to pixel by CC_SIZE_POINTS_TO_PIXELS.

zhangxm 2012-08-22 10:17
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:cfebbcac540dece8f1c8677b04c40053b1d487e6.

zhangxm 2012-08-22 10:17

Applied in changeset commit:9b5343a972039d1d319cf1c2a335433cb4ed8bf0.

zhangxm 2012-08-23 07:37
  • Status changed from Resolved to Closed

Atom PDF

Status:Closed
Start date:2012-08-22
Priority:Normal
Due date:
Assignee:zhangxm
% Done:

100%

Category:all
Target version:cocos2d-2.0-x-2.0.2

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