Fix error in Fl_WinAPI_Screen_Driver::screen_work_area() when screen is scaled.
This commit is contained in:
parent
58119f412d
commit
a7a3c5b429
@ -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];
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user