mirror of https://github.com/axmolengine/axmol.git
[uphone]support wrap when the dimensions is specified in CCLabelTTF.
This commit is contained in:
parent
693a8f049b
commit
0f52839efb
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue