Skip to content

Commit

Permalink
Fix High DPI
Browse files Browse the repository at this point in the history
  • Loading branch information
ViRb3 committed Mar 17, 2022
1 parent 7cb703b commit eed74ff
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/native/macosx/org_lwjgl_opengl_Display.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ + (void) createWindow {
// Inform the view of its parent window info;
[window_info->view setParent:window_info];

if (window_info->enableHighDPI) {
// call method using runtime selector as its a 10.7+ api and allows compiling on older SDK's
[window_info->view performSelector:NSSelectorFromString(@"setWantsBestResolutionOpenGLSurface:") withObject:YES];
}
[window_info->view setWantsBestResolutionOpenGLSurface:NO];

// set nsapp delegate for catching app quit events
[NSApp setDelegate:window_info->view];
Expand Down

0 comments on commit eed74ff

Please sign in to comment.