diff options
| author | Manolo Gouy <Manolo> | 2017-06-17 06:53:44 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-06-17 06:53:44 +0000 |
| commit | 2cda5a4fa682372f294a7a8e9e2b90a9fdb15610 (patch) | |
| tree | 4040f478267a4ff808c4eaf8ee1aa92014e6465c /src/Fl_x.cxx | |
| parent | ea56e744afd2029da309bbf33f33a5e505610306 (diff) | |
Make Fl_Screen_Driver::get_mouse(int&, int&) return the number of the mouse-containing screen.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12264 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_x.cxx')
| -rw-r--r-- | src/Fl_x.cxx | 6 |
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; } //////////////////////////////////////////////////////////////// |
