mirror of https://github.com/axmolengine/axmol.git
quick fix for positioning the FPS on non HD
This commit is contained in:
parent
e7af234d31
commit
61e4ffbc3c
|
@ -962,7 +962,7 @@ void Director::createStatsLabel()
|
|||
|
||||
Texture2D::setDefaultAlphaPixelFormat(currentFormat);
|
||||
|
||||
const int height_spacing = 11;
|
||||
const int height_spacing = 22 / CC_CONTENT_SCALE_FACTOR();
|
||||
_drawnVerticesLabel->setPosition(Point(0, height_spacing*2) + CC_DIRECTOR_STATS_POSITION);
|
||||
_drawnBatchesLabel->setPosition(Point(0, height_spacing*1) + CC_DIRECTOR_STATS_POSITION);
|
||||
_FPSLabel->setPosition(Point(0, height_spacing*0)+CC_DIRECTOR_STATS_POSITION);
|
||||
|
|
Loading…
Reference in New Issue