Bug #475
CCImage::initWithString return true even if the bitmap hasn't been initialized
| Status: | Closed | Start date: | 2011-04-28 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | - | |||
| Target version: | - |
Description
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.
History
Updated by Zhe Wang about 2 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset commit:0b54e1eac39207530fc047b706b3abf19b4d18c4.
Updated by Zhe Wang about 2 years ago
- Status changed from Resolved to Closed