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 b4895f2 commit 3e612f0Copy full SHA for 3e612f0
cocos2d/CCLabelBMFont.m
@@ -815,7 +815,7 @@ -(void) createFontChars
815
// See issue 1343. cast( signed short + unsigned integer ) == unsigned integer (sign is lost!)
816
NSInteger yOffset = _configuration->_commonHeight - fontDef.yOffset;
817
CGPoint fontPos = ccp( (CGFloat)nextFontPositionX + fontDef.xOffset + fontDef.rect.size.width*0.5f + kerningAmount,
818
- (CGFloat)nextFontPositionY + yOffset - rect.size.height*0.5f );
+ (CGFloat)nextFontPositionY + yOffset - rect.size.height*0.5f * __ccContentScaleFactor );
819
fontChar.position = ccpMult(fontPos, contentScale);
820
821
// update kerning
0 commit comments