support Chinese in cocos2dx-uphone

This commit is contained in:
natural-law 2010-10-27 03:56:51 +00:00
parent 2935faebfc
commit 6d98ae5b2c
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ namespace cocos2d {
// text // text
Int32 len = strlen(text) + 1; Int32 len = strlen(text) + 1;
TUChar *pText = new TUChar[len]; TUChar *pText = new TUChar[len];
TUString::StrUtf8ToStrUnicode(pText, (Char*)text); TUString::StrGBToUnicode(pText, (Char*)text);
// calculate text size // calculate text size
if (CGSize::CGSizeEqualToSize(dimensions, CGSizeZero)) if (CGSize::CGSizeEqualToSize(dimensions, CGSizeZero))