diff options
| author | Manolo Gouy <Manolo> | 2017-07-14 06:56:20 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-07-14 06:56:20 +0000 |
| commit | 872406c871a440b5129dfd5b792ba0c983036d08 (patch) | |
| tree | cda0b62dd46bbf7d4a6999eb1f37798031fb4857 /src/fl_dnd_win32.cxx | |
| parent | 196d0a73b4a198652bcb86eb36d7adec7bc1387e (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
Diffstat (limited to 'src/fl_dnd_win32.cxx')
| -rw-r--r-- | src/fl_dnd_win32.cxx | 6 |
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; |
