summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx4
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];
}