From 7fdac3790a487f0694a1799f5df8bbae6803bb0a Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 25 Jan 2021 08:01:28 +0100 Subject: Windows: fix scaling problem in Fl_Tile. The problem was visible with test/tile for fractional scaling values when moving the vertical division. --- src/Fl_win32.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 555abd10e..bd37dddd1 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1608,7 +1608,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar else if (!Fl_WinAPI_Window_Driver::data_for_resize_window_between_screens_.busy) wd->screen_num(news); } - window->position(nx / scale, ny / scale); + window->position(round(nx/scale), round(ny/scale)); break; } // case WM_MOVE -- cgit v1.2.3