We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48bc290 commit a3e7885Copy full SHA for a3e7885
cocos2d/CCLabelTTF.m
@@ -528,6 +528,9 @@ - (CCTexture*) createTextureWithAttributedString:(NSAttributedString*)attributed
528
dimensions = [attributedString boundingRectWithSize:NSSizeFromCGSize(dimensions) options:NSStringDrawingUsesLineFragmentOrigin].size;
529
#endif
530
531
+ dimensions.width = ceil(dimensions.width);
532
+ dimensions.height = ceil(dimensions.height);
533
+
534
wDrawArea = dimensions.width;
535
hDrawArea = dimensions.height;
536
0 commit comments