Skip to content

Commit 00faacd

Browse files
committed
Remove content scale from bitmap font label as it was causing labels to be way too far down
Former-commit-id: 7372707
1 parent a39eb57 commit 00faacd

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 * __ccContentScaleFactor );
818+
(CGFloat)nextFontPositionY + yOffset - rect.size.height*0.5f );
819819
fontChar.position = ccpMult(fontPos, contentScale);
820820

821821
// update kerning

0 commit comments

Comments
 (0)