From ff1a2632bd1e6512038466996f02c07091cc2820 Mon Sep 17 00:00:00 2001 From: LD Date: Sat, 21 Dec 2019 10:53:05 +0100 Subject: [PATCH] cocoa: Remove now useless respondsToSelector for setWantsBestResolutionOpenGLSurface Closes #820 --- panda/src/cocoadisplay/cocoaGraphicsWindow.mm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/panda/src/cocoadisplay/cocoaGraphicsWindow.mm b/panda/src/cocoadisplay/cocoaGraphicsWindow.mm index fc22d0d834..bfe0055677 100644 --- a/panda/src/cocoadisplay/cocoaGraphicsWindow.mm +++ b/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) {