Browse Source

cocoa: Remove now useless respondsToSelector for setWantsBestResolutionOpenGLSurface

Closes #820
LD 6 years ago
parent
commit
ff1a2632bd
1 changed files with 1 additions and 4 deletions
  1. 1 4
      panda/src/cocoadisplay/cocoaGraphicsWindow.mm

+ 1 - 4
panda/src/cocoadisplay/cocoaGraphicsWindow.mm

@@ -554,10 +554,7 @@ open_window() {
   }
 
   // Always disable application HiDPI support, Cocoa will do the eventual upscaling for us.
-  // Note: setWantsBestResolutionOpenGLSurface method is supported from MacOS 10.7 onwards
-  if ([_view respondsToSelector:@selector(setWantsBestResolutionOpenGLSurface:)]) {
-    [_view setWantsBestResolutionOpenGLSurface:NO];
-  }
+  [_view setWantsBestResolutionOpenGLSurface:NO];
   if (_properties.has_icon_filename()) {
     NSImage *image = load_image(_properties.get_icon_filename());
     if (image != nil) {