summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-28 08:23:36 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-28 08:23:36 +0200
commit7d58e2385452b8373448e3f91013a8cda39c7aa3 (patch)
treec32031f39a518704f10a2bc8ec148f04a62f45d2 /src
parent3225afaeecc1a1f0a54cab6f60be485a0352606c (diff)
macOS: add necessary setWantsBestResolutionOpenGLSurface:YES message.
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm5
1 files changed, 5 insertions, 0 deletions
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;
}