From 872406c871a440b5129dfd5b792ba0c983036d08 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 14 Jul 2017 06:56:20 +0000 Subject: 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 --- src/fl_dnd_win32.cxx | 6 +++--- 1 file 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; -- cgit v1.2.3