Fix moving GL subwindow between retina and non-retina screens.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@13095 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
3dcee16c5e
commit
3409bcbb5e
@ -1444,9 +1444,8 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
|
|||||||
if (!window->as_gl_window()) { // move layered non-GL window to different resolution
|
if (!window->as_gl_window()) { // move layered non-GL window to different resolution
|
||||||
[(FLView*)[nsw contentView] viewFrameDidChange];
|
[(FLView*)[nsw contentView] viewFrameDidChange];
|
||||||
}
|
}
|
||||||
if (window->parent()) {
|
if (fl_mac_os_version < 101401 && window->parent() && window->as_gl_window() && Fl::use_high_res_GL()) {
|
||||||
[nsw setSubwindowFrame];
|
[[nsw contentView] layer].contentsScale = Fl_X::i(window)->mapped_to_retina() ? 2. : 1.;
|
||||||
[[nsw contentView] display];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user