Skip to content

Commit

Permalink
We call glViewport() with bounds appropriate for the backing if wants…
Browse files Browse the repository at this point in the history
…BestResolutionOpenGLSurface is turned on (which we turn on in -init)
  • Loading branch information
Nick Zitzmann committed Sep 8, 2013
1 parent b188f36 commit fea83f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HyperspaceView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ - (void)setFrameSize:(NSSize)size
if (lView)
[lView setFrameSize:size];

if ([self respondsToSelector:@selector(convertRectToBacking:)])
if ([lView respondsToSelector:@selector(convertRectToBacking:)] && lView.wantsBestResolutionOpenGLSurface) // on Lion & later, if we're using a best resolution surface, then call glViewport() with the appropriate width and height for the backing
{
NSRect newBounds = [self convertRectToBacking:self.bounds];

Expand Down

0 comments on commit fea83f8

Please sign in to comment.