summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fl_dnd_win32.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fl_dnd_win32.cxx b/src/fl_dnd_win32.cxx
index 2c64a5ad8..4ce2183cf 100644
--- a/src/fl_dnd_win32.cxx
+++ b/src/fl_dnd_win32.cxx
@@ -93,9 +93,9 @@ DPI–aware applications transmit unscaled screen units to all 3 member function
These coordinates should be divided by the window's scale to get FLTK units.
*/
#ifndef FLTK_HIDPI_SUPPORT
- int mx, my;
- Fl::screen_driver()->get_mouse(mx, my); // bypass Windows bug that gives mouse coordinates in unscaled screen units
- pt.x = mx; pt.y = my;
+ POINT mp;
+ GetCursorPos(&mp); // bypass Windows bug that gives mouse coordinates in unscaled screen units
+ pt.x = mp.x; pt.y = mp.y;
#endif
POINT ppt;
Fl::e_x_root = ppt.x = pt.x;