mirror of https://github.com/axmolengine/axmol.git
support Chinese in cocos2dx-uphone
This commit is contained in:
parent
2935faebfc
commit
6d98ae5b2c
|
@ -43,7 +43,7 @@ namespace cocos2d {
|
|||
// text
|
||||
Int32 len = strlen(text) + 1;
|
||||
TUChar *pText = new TUChar[len];
|
||||
TUString::StrUtf8ToStrUnicode(pText, (Char*)text);
|
||||
TUString::StrGBToUnicode(pText, (Char*)text);
|
||||
|
||||
// calculate text size
|
||||
if (CGSize::CGSizeEqualToSize(dimensions, CGSizeZero))
|
||||
|
|
Loading…
Reference in New Issue