Skip to content

Commit 3e612f0

Browse files
committed
Revert "Remove content scale from bitmap font label as it was causing labels to be way too far down"
This reverts commit 00faacd [formerly 7372707]. Former-commit-id: 7aab4e9
1 parent b4895f2 commit 3e612f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/CCLabelBMFont.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ -(void) createFontChars
815815
// See issue 1343. cast( signed short + unsigned integer ) == unsigned integer (sign is lost!)
816816
NSInteger yOffset = _configuration->_commonHeight - fontDef.yOffset;
817817
CGPoint fontPos = ccp( (CGFloat)nextFontPositionX + fontDef.xOffset + fontDef.rect.size.width*0.5f + kerningAmount,
818-
(CGFloat)nextFontPositionY + yOffset - rect.size.height*0.5f );
818+
(CGFloat)nextFontPositionY + yOffset - rect.size.height*0.5f * __ccContentScaleFactor );
819819
fontChar.position = ccpMult(fontPos, contentScale);
820820

821821
// update kerning

0 commit comments

Comments
 (0)