summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-07-14 06:56:20 +0000
committerManolo Gouy <Manolo>2017-07-14 06:56:20 +0000
commit872406c871a440b5129dfd5b792ba0c983036d08 (patch)
treecda0b62dd46bbf7d4a6999eb1f37798031fb4857
parent196d0a73b4a198652bcb86eb36d7adec7bc1387e (diff)
FLDropTarget::DragEnter() replace call to Fl_Screen_Driver::get_mouse(int&, int&) by call to GetCursorPos(POINT*)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12317 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-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;