Projects > cpp > Issues > Bug #475

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

Create Issue on Github

CCImage::initWithString return true even if the bitmap hasn't been initialized

Bug #475 [Closed]
walzer@cocos2d-x.org 2011-04-28 00:13 . Updated over 2 years ago

Read this post: http://www.cocos2d-x.org/boards/10/topics/1269?r=1320\#message-1320
Someone make a logic error in this function, in cocos2dx/platform/android/CCImage_android.cpp

bRet = dc.drawText(pText, nWidth, nHeight, eAlignMask);

this line may set bRet = true, no matter the codes below failed, CCImage::initWithString will return true.

walzer@cocos2d-x.org 2011-04-28 01:54
  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:0b54e1eac39207530fc047b706b3abf19b4d18c4.

walzer@cocos2d-x.org 2011-05-02 19:47
  • Status changed from Resolved to Closed
walzer@cocos2d-x.org 2012-05-25 08:11
  • Project changed from cocos2d-x to cpp
  • Category deleted (2)
  • Target version deleted (cocos2d-0.99.5-x-0.8.3)

Atom PDF

Status:Closed
Start date:2011-04-28
Priority:Normal
Due date:
Assignee:walzer@cocos2d-x.org
% Done:

100%

Category:-
Target version:-

Copyright © 2010 - 2014 Cocos2d-x.org Support Email: support@cocos.org