Skip to content

Commit

Permalink
issue #632 : 2x scale on not full screen mode in Mac-retina graphics
Browse files Browse the repository at this point in the history
Former-commit-id: 14faf77
  • Loading branch information
krazyeom committed Mar 6, 2014
1 parent b33fbad commit c89195d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cocos2d/Platforms/Mac/CCDirectorMac.m
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ - (void) setFullScreen:(BOOL)fullscreen

// Show the fullscreen window
[_fullScreenWindow makeKeyAndOrderFront:self];
[_fullScreenWindow makeMainWindow];
[_fullScreenWindow makeMainWindow];
// issue #632
self.view.wantsBestResolutionOpenGLSurface = NO;


} else {

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

// Show the window
[_windowGLView makeKeyAndOrderFront:self];
[_windowGLView makeMainWindow];
[_windowGLView makeMainWindow];
// issue #632
self.view.wantsBestResolutionOpenGLSurface = YES;

}

// issue #1189
Expand Down

0 comments on commit c89195d

Please sign in to comment.