From 94f859c373393dc0b9b546e7a8c0b1f50470d3ae Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 22 Apr 2019 10:02:32 +0200 Subject: Consistently compute the current GUI scaling factor value. --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index a097ee3cd..bdc418a5d 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1220,7 +1220,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil; Fl_Window *window = [nsw getFl_Window]; // don't process move for a subwindow of a miniaturized top window if (window->parent() && [fl_xid(window->top_window()) isMiniaturized]) return; - if (fabs([[nsw contentView] frame].size.height - window->h() * fl_graphics_driver->scale()) > 5.) { + if (fabs([[nsw contentView] frame].size.height - window->h() * Fl::screen_driver()->scale(0)) > 5.) { // the contentView, but not the window frame, is resized. This happens with tabbed windows. [self windowDidResize:notif]; return; -- cgit v1.2.3