File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 47
47
#import " CCLabelBMFont_Private.h"
48
48
#import " CCSprite_Private.h"
49
49
#import " CCSpriteBatchNode_Private.h"
50
+ #import " CCDrawingPrimitives.h"
50
51
51
52
#pragma mark -
52
53
#pragma mark FNTConfig Cache - free functions
@@ -815,7 +816,7 @@ -(void) createFontChars
815
816
// See issue 1343. cast( signed short + unsigned integer ) == unsigned integer (sign is lost!)
816
817
NSInteger yOffset = _configuration->_commonHeight - fontDef.yOffset ;
817
818
CGPoint fontPos = ccp ( (CGFloat)nextFontPositionX + fontDef.xOffset + fontDef.rect .size .width *0 .5f + kerningAmount,
818
- (CGFloat)nextFontPositionY + yOffset - rect.size .height *0 .5f * __ccContentScaleFactor );
819
+ (CGFloat)nextFontPositionY + yOffset - rect.size .height *0 .5f * _textureAtlas. texture . contentScale );
819
820
fontChar.position = ccpMult (fontPos, contentScale);
820
821
821
822
// update kerning
You can’t perform that action at this time.
0 commit comments