diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-04-22 10:02:32 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-04-22 10:02:32 +0200 |
| commit | 94f859c373393dc0b9b546e7a8c0b1f50470d3ae (patch) | |
| tree | 4a3ae741fc152650d64a80d1256ed7e3a0029c61 /src | |
| parent | 602c6ffd8a9154f323f38c2e599abea8947f1f04 (diff) | |
Consistently compute the current GUI scaling factor value.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
