mirror of
https://github.com/fltk/fltk.git
synced 2026-05-19 20:27:04 +08:00
macOS: Fix GL window child widgets when the window's screen changes resolution
This commit is contained in:
@@ -294,6 +294,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