diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-02-28 18:06:32 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-02-28 18:06:32 +0100 |
| commit | a7a3c5b4298a2f23de5deba7cfb87a73f4eec279 (patch) | |
| tree | 9ed518c3009d1951e234bf58aed7f6646bc65387 /src/drivers | |
| parent | 58119f412d50e774b8068fe6fc7a6de659759a3b (diff) | |
Fix error in Fl_WinAPI_Screen_Driver::screen_work_area() when screen is scaled.
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx index b96857257..cf5f30f5f 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx @@ -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]; } |
