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_Window_Driver.cxx | |
| parent | 5ade8fcb09ad2f30d0ee84228f062bdfc8ecdc50 (diff) | |
Remove compilation warnings issued by Visual Studio 2019.
Diffstat (limited to 'src/Fl_Window_Driver.cxx')
| -rw-r--r-- | src/Fl_Window_Driver.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Window_Driver.cxx b/src/Fl_Window_Driver.cxx index 012fbc75f..b9da6e0fd 100644 --- a/src/Fl_Window_Driver.cxx +++ b/src/Fl_Window_Driver.cxx @@ -239,10 +239,10 @@ bool Fl_Window_Driver::is_a_rescale_ = false; void Fl_Window_Driver::resize_after_scale_change(int ns, float old_f, float new_f) { screen_num(ns); Fl_Graphics_Driver::default_driver().scale(new_f); - int X = pWindow->x()*old_f/new_f, Y = pWindow->y()*old_f/new_f; + int X = int(pWindow->x() * old_f / new_f), Y = int(pWindow->y() * old_f / new_f); int W, H; if (pWindow->fullscreen_active()) { - W = pWindow->w() * old_f/new_f; H = pWindow->h() * old_f/new_f; + W = int(pWindow->w() * old_f / new_f); H = int(pWindow->h() * old_f / new_f); } else { W = pWindow->w(); H = pWindow->h(); int sX, sY, sW, sH; |
