mirror of https://github.com/axmolengine/axmol.git
Fixes a compilation error for Xcode 4.2 and still maintains compatibility with Xcode 4.5.
This commit is contained in:
parent
ee12785c6a
commit
d77d10a974
|
@ -315,7 +315,7 @@ static bool _initWithString(const char * pText, cocos2d::CCImage::ETextAlign eAl
|
|||
// normal fonts
|
||||
if( [font isKindOfClass:[UIFont class] ] )
|
||||
{
|
||||
[str drawInRect:CGRectMake(0, startH, dim.width, dim.height) withFont:font lineBreakMode:(NSLineBreakMode)UILineBreakModeWordWrap alignment:align];
|
||||
[str drawInRect:CGRectMake(0, startH, dim.width, dim.height) withFont:font lineBreakMode:(UILineBreakMode)UILineBreakModeWordWrap alignment:align];
|
||||
}
|
||||
else // ZFont class
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue