Fixes a compilation error for Xcode 4.2 and still maintains compatibility with Xcode 4.5.

This commit is contained in:
Nat Weiss 2012-07-10 21:01:32 -07:00
parent ee12785c6a
commit d77d10a974
1 changed files with 1 additions and 1 deletions

View File

@ -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
{