From 7d58e2385452b8373448e3f91013a8cda39c7aa3 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 28 Sep 2022 08:23:36 +0200 Subject: macOS: add necessary setWantsBestResolutionOpenGLSurface:YES message. --- src/Fl_cocoa.mm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 783273662..9cb302dcb 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2953,6 +2953,11 @@ NSOpenGLContext *Fl_Cocoa_Window_Driver::gl1ctxt_create() { initWithFormat:gl1pixelformat shareContext:nil]; [gl1pixelformat release]; remove_gl_context_opacity(gl1ctxt); +#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_7 + if (fl_mac_os_version >= 100700 && Fl::use_high_res_GL()) { + [gl1view setWantsBestResolutionOpenGLSurface:YES]; + } +#endif [gl1ctxt setView:gl1view]; return gl1ctxt; } -- cgit v1.2.3