mirror of
https://github.com/fltk/fltk.git
synced 2026-05-20 12:41:27 +08:00
macOS: Fix GL window child widgets when the window's screen changes resolution
This commit is contained in:
@@ -315,6 +315,7 @@ void Fl_Cocoa_Gl_Window_Driver::make_current_before() {
|
||||
d->changed_resolution(false);
|
||||
pWindow->invalidate();
|
||||
[(NSOpenGLContext*)pWindow->context() update];
|
||||
if (gl1ctxt) [gl1ctxt update];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user