diff options
| author | Manolo Gouy <Manolo> | 2018-02-16 17:12:23 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2018-02-16 17:12:23 +0000 |
| commit | 5bf7e5ece77d1dd02423398618220d4f2f2c0459 (patch) | |
| tree | 6056cccfb1ac42d197a0b3d31ccdbf09d9b89df8 /src | |
| parent | 38b924e12b1ea17e2d9e0912e3dce36258478d01 (diff) | |
Fix Fl_Cocoa_Screen_Driver::screen_work_area() when the GUI is scaled - continued.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index c42b4432a..e5977ed85 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1927,7 +1927,8 @@ static void get_window_frame_sizes(int &bx, int &by, int &bt, Fl_Window *win) { * smallest x coordinate in screen space of work area of menubar-containing display */ int Fl_Cocoa_Screen_Driver::x() { - return int([[[NSScreen screens] objectAtIndex:0] visibleFrame].origin.x); + open_display(); + return int([[[NSScreen screens] objectAtIndex:0] visibleFrame].origin.x) / scale(0); } |
