cocos2d/cocos2d-objc

Using Inset Points for a CCLabelTTF breaks on iPad Retina (4x)

RobBoluga opened this issue · 0 comments

Lines 478-484 in CCLabelTTF don't account for using inset CCSizeTypes.
The originalDimensions variable is not needed and the lines should be replaced with:

CGFloat scale = [CCDirector sharedDirector].contentScaleFactor;
CGSize dimensions = [self convertContentSizeToPoints:_dimensions type:_dimensionsType];
dimensions.width *= scale;
dimensions.height *= scale;