MacOS: fix necessary for 10.14.2 public beta 3
Apple keeps changing how windows are drawn under 10.14 Mojave, even between minor releases! This change is required to correctly update a GL window moved from a non-retina to a retina display under 10.14.2 public beta 3 (glpuzzle shows the problem). It's unsure if it will still be necessary with 10.14.2, or later versions, but the change does no harm if it's not necessary. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@13125 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
93f4f91429
commit
47127be7dd
@ -1445,9 +1445,11 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
|
||||
// useful for Mandelbrot to recreate the layer's bitmap
|
||||
[view displayLayer:[view layer]];
|
||||
}
|
||||
if (fl_mac_os_version < 101401 && window->parent() && window->as_gl_window() && Fl::use_high_res_GL()) {
|
||||
if (fl_mac_os_version < 101401 && window->as_gl_window() && Fl::use_high_res_GL()) {
|
||||
[view layer].contentsScale = Fl_X::i(window)->mapped_to_retina() ? 2. : 1.;
|
||||
}
|
||||
if (window->as_gl_window() && Fl::use_high_res_GL())
|
||||
window->redraw(); // necessary with 10.14.2 public beta 3
|
||||
}
|
||||
#endif
|
||||
fl_unlock_function();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user