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
This commit is contained in:
parent
196d0a73b4
commit
872406c871
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user