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.
2 parents 5afc141 + a3e7885 commit f0622b8Copy full SHA for f0622b8
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