From 185934b9b0cfb118f7e6251521f8aaafe7e22675 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 29 Oct 2018 10:14:09 +0000 Subject: Fix handling of layer-backed GL window moved between retina and non retina screens. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13089 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 0b50353d8..759da3411 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1253,8 +1253,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil; #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8 if (views_use_CA && [(FLView*)[nsw contentView] did_view_resolution_change]) { if (window->as_gl_window()) { // move layered GL window to different resolution - NSView *view = [nsw contentView]; - [view display]; [view display]; // 2 necessary for toplevel GL windows + window->as_gl_window()->valid(0); } else [(FLView*)[nsw contentView] viewFrameDidChange]; if (window->parent()) { [nsw setSubwindowFrame]; -- cgit v1.2.3