summaryrefslogtreecommitdiff
path: root/src/Fl_x.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_x.cxx')
-rw-r--r--src/Fl_x.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index d2dcc8e7e..00d985582 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -733,10 +733,12 @@ int Fl_X11_Screen_Driver::get_mouse_unscaled(int &mx, int &my) {
}
-void Fl_X11_Screen_Driver::get_mouse(int &xx, int &yy) {
- float s = scale(get_mouse_unscaled(xx, yy));
+int Fl_X11_Screen_Driver::get_mouse(int &xx, int &yy) {
+ int snum = get_mouse_unscaled(xx, yy);
+ float s = scale(snum);
xx = xx/s;
yy = yy/s;
+ return snum;
}
////////////////////////////////////////////////////////////////