Skip to content

Commit

Permalink
Fix Fl_Cocoa_Screen_Driver::screen_work_area() when the GUI is scaled…
Browse files Browse the repository at this point in the history
… - continued.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Feb 16, 2018
1 parent 38b924e commit 5bf7e5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Fl_cocoa.mm
Expand Up @@ -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);
}


Expand Down

0 comments on commit 5bf7e5e

Please sign in to comment.