diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-11-05 15:21:56 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-11-05 15:21:56 +0100 |
| commit | 76a3ded5491c3cbc31f921ddbc9d2afa4257940a (patch) | |
| tree | 97976957aa7e5a3d1d615c29aeb5d8e15b7ab696 | |
| parent | a0654b59ac17ad5b7739b7136d00f2469b03d5fa (diff) | |
Fix for issue #279 about detecting early retina with GL windows.
| -rw-r--r-- | src/Fl_cocoa.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 63c6c8e93..2c130f5da 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3143,6 +3143,7 @@ Fl_X* Fl_Cocoa_Window_Driver::makeWindow() Fl::e_number = old_event; // if (w->modal()) { Fl::modal_ = w; fl_fix_focus(); } + if (!w->parent()) [myview did_view_resolution_change]; // to set mapped_to_retina to its current state [pool release]; return x; } |
