Quellcode durchsuchen

cocoa: Remove now useless respondsToSelector for setWantsBestResolutionOpenGLSurface

Closes #820
LD vor 6 Jahren
Ursprung
Commit
ff1a2632bd
1 geänderte Dateien mit 1 neuen und 4 gelöschten Zeilen
  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.
   // 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()) {
   if (_properties.has_icon_filename()) {
     NSImage *image = load_image(_properties.get_icon_filename());
     NSImage *image = load_image(_properties.get_icon_filename());
     if (image != nil) {
     if (image != nil) {