Skip to content

Commit 7bf49da

Browse files
committed
Merge pull request #633 from krazyeom/issue-632
issue #632 : 2x scale on not full screen mode in Mac-retina graphics Former-commit-id: 1caaec0
2 parents f4ab30c + c099985 commit 7bf49da

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

cocos2d/Platforms/Mac/CCDirectorMac.m

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@ - (void) setFullScreen:(BOOL)fullscreen
150150

151151
// Show the fullscreen window
152152
[_fullScreenWindow makeKeyAndOrderFront:self];
153-
[_fullScreenWindow makeMainWindow];
153+
[_fullScreenWindow makeMainWindow];
154+
// issue #632
155+
self.view.wantsBestResolutionOpenGLSurface = NO;
156+
154157

155158
} else {
156159

@@ -168,7 +171,10 @@ - (void) setFullScreen:(BOOL)fullscreen
168171

169172
// Show the window
170173
[_windowGLView makeKeyAndOrderFront:self];
171-
[_windowGLView makeMainWindow];
174+
[_windowGLView makeMainWindow];
175+
// issue #632
176+
self.view.wantsBestResolutionOpenGLSurface = YES;
177+
172178
}
173179

174180
// issue #1189

0 commit comments

Comments
 (0)