[uphone]support wrap when the dimensions is specified in CCLabelTTF.

This commit is contained in:
natural-law 2011-02-16 11:03:32 +08:00
parent 693a8f049b
commit 0f52839efb
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ namespace cocos2d {
// create DC // create DC
TDC dc(s_pMemWnd); TDC dc(s_pMemWnd);
// set DC styles // set DC styles
UInt32 styles = GUI_API_STYLE_SPECIFY_FORE_COLOR | GUI_API_STYLE_ROP_MODE_TRANSPARENT | UInt32 styles = GUI_API_STYLE_SPECIFY_FORE_COLOR | GUI_API_STYLE_ROP_MODE_TRANSPARENT | GUI_API_STYLE_CLIP_WORDWRAP |
GUI_API_STYLE_SPECIFY_BACK_COLOR | GUI_API_STYLE_ALIGNMENT_MIDDLE | GUI_API_STYLE_SPECIFY_FONT; GUI_API_STYLE_SPECIFY_BACK_COLOR | GUI_API_STYLE_ALIGNMENT_MIDDLE | GUI_API_STYLE_SPECIFY_FONT;
switch (alignment) switch (alignment)