Skip to content

Commit c099985

Browse files
committed
issue #632 : 2x scale on not full screen mode in Mac-retina graphics
Former-commit-id: af0c5e9
1 parent b580f49 commit c099985

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)