spritebuilder / SpriteBuilder

Objective-C Game Development Suite
http://www.spritebuilder.com/
Other
740 stars 292 forks source link

[Retina Display] Grid markers are displayed in bigger size when user decrease or increases the stage size. #1572

Open khanbhai89 opened 9 years ago

khanbhai89 commented 9 years ago
  1. Launch Application.
  2. Try to decrease or increase the stage size.

    -- Result: Grid markers are displayed bigger in size when user decreases or increases the stage size. This happened 3/3 times.

    Important Note: This only happened on retina display MacBooks both 15" and 13".

Video: https://drive.google.com/a/werplay.com/file/d/0B5KeRaV3CWUaVGZCbHRUbExnN0k/view?usp=sharing

Mac OS X: 10.9.5. Xcode: 6.1. SpriteBuilder: 2.0. SB Revision: 4fd68fb2bf

aceiii commented 9 years ago

I'm also having the issue on my 15" retina macbook pro with the latest code from the develop branch (3c4db04).

I've tracked it down to the line:61: _director.runningScene.contentSizeInPoints = CC_SIZE_SCALE(sizeInPixels, 1.0/[CCSetup sharedSetup].contentScale); in file: Spritebuilder/libs/cocos2d-iphone/cocos2d/Platforms/Mac/CCViewMacGL.m.

Changing the line to: _director.runningScene.contentSizeInPoints = CC_SIZE_SCALE(sizeInPixels, [CCSetup sharedSetup].contentScale); seems to fix the problem, but I am unable to test to see whether or not it messes up Mac builds of a game using that revision for cocos2d-spritebuilder.