diff options
| author | Manolo Gouy <Manolo> | 2018-03-09 16:27:27 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2018-03-09 16:27:27 +0000 |
| commit | 7f78b1ef1468bb8242fb7fb37e3f27d0a8052ce1 (patch) | |
| tree | 517c45c18c7dc28f8d3a05662a75497c408c1dbe /src/fl_dnd_win32.cxx | |
| parent | 12f628514771294102d2aa961373373a95ddab6b (diff) | |
Windows: remove necessity to compile with -DFLTK_HIDPI_SUPPORT to make WIN32 FLTK apps DPI-aware.
At this point, Windows FLTK apps detect HighDPI displays and rescale their GUI accordingly. They also
all reply to ctrl/+/-/0/ keystrokes to enlarge/shrink/reset their windows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12723 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_dnd_win32.cxx')
| -rw-r--r-- | src/fl_dnd_win32.cxx | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/fl_dnd_win32.cxx b/src/fl_dnd_win32.cxx index f6d68676e..cdc6529bc 100644 --- a/src/fl_dnd_win32.cxx +++ b/src/fl_dnd_win32.cxx @@ -84,19 +84,6 @@ public: if( !pDataObj ) return E_INVALIDARG; // set e_modifiers here from grfKeyState, set e_x and e_root_x // check if FLTK handles this drag and return if it can't (i.e. BMP drag without filename) -/* Tricky point here: Not DPI–aware applications use different units for the 'POINTL pt' argument -of the DragEnter, DragOver, and Drop member functions. -DragEnter receives the mouse coordinates in unscaled screen units, -whereas DragOver and Drop receive the mouse coordinates in scaled units. - -DPI–aware applications transmit unscaled screen units to all 3 member functions. -These coordinates should be divided by the window's scale to get FLTK units. -*/ -#ifndef FLTK_HIDPI_SUPPORT - 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; Fl::e_y_root = ppt.y = pt.y; |
