diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-02-13 21:12:52 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-02-13 21:13:04 +0100 |
| commit | 9fad60140167661bfa1f442db3b81ba9e10d37e9 (patch) | |
| tree | 564b6cdd0e52c523a9a51e136d2edb0bbd60ece2 /src/fl_dnd_win32.cxx | |
| parent | 5ade8fcb09ad2f30d0ee84228f062bdfc8ecdc50 (diff) | |
Remove compilation warnings issued by Visual Studio 2019.
Diffstat (limited to 'src/fl_dnd_win32.cxx')
| -rw-r--r-- | src/fl_dnd_win32.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fl_dnd_win32.cxx b/src/fl_dnd_win32.cxx index 94fd10cfe..65a9a81dc 100644 --- a/src/fl_dnd_win32.cxx +++ b/src/fl_dnd_win32.cxx @@ -89,8 +89,8 @@ public: Fl_Window *target = fl_find( hWnd ); if (target) { float s = Fl::screen_driver()->scale(Fl_Window_Driver::driver(target)->screen_num()); - Fl::e_x_root /= s; - Fl::e_y_root /= s; + Fl::e_x_root = int(Fl::e_x_root / s); + Fl::e_y_root = int(Fl::e_y_root / s); Fl::e_x = Fl::e_x_root-target->x(); Fl::e_y = Fl::e_y_root-target->y(); } @@ -124,8 +124,8 @@ public: Fl::e_y_root = pt.y; if (fl_dnd_target_window) { float s = Fl::screen_driver()->scale(Fl_Window_Driver::driver(fl_dnd_target_window)->screen_num()); - Fl::e_x_root /= s; - Fl::e_y_root /= s; + Fl::e_x_root = int(Fl::e_x_root /s); + Fl::e_y_root = int(Fl::e_y_root /s); Fl::e_x = Fl::e_x_root-fl_dnd_target_window->x(); Fl::e_y = Fl::e_y_root-fl_dnd_target_window->y(); } @@ -161,8 +161,8 @@ public: Fl::e_x_root = pt.x; Fl::e_y_root = pt.y; float s = Fl::screen_driver()->scale(Fl_Window_Driver::driver(target)->screen_num()); - Fl::e_x_root /= s; - Fl::e_y_root /= s; + Fl::e_x_root = int(Fl::e_x_root / s); + Fl::e_y_root = int(Fl::e_y_root / s); if (target) { Fl::e_x = Fl::e_x_root-target->x(); Fl::e_y = Fl::e_y_root-target->y(); |
