Fix error in Fl_WinAPI_Screen_Driver::screen_work_area() when screen is scaled.

This commit is contained in:
ManoloFLTK 2019-02-28 18:06:32 +01:00
parent 58119f412d
commit a7a3c5b429

View File

@ -169,8 +169,8 @@ void Fl_WinAPI_Screen_Driver::screen_work_area(int &X, int &Y, int &W, int &H, i
if (n < 0 || n >= num_screens) n = 0;
X = work_area[n].left/scale_of_screen[n];
Y = work_area[n].top/scale_of_screen[n];
W = (work_area[n].right - X)/scale_of_screen[n];
H = (work_area[n].bottom - Y)/scale_of_screen[n];
W = (work_area[n].right - work_area[n].left)/scale_of_screen[n];
H = (work_area[n].bottom - work_area[n].top)/scale_of_screen[n];
}