summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-01-25 08:01:28 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-01-25 08:01:42 +0100
commit7fdac3790a487f0694a1799f5df8bbae6803bb0a (patch)
tree46d69b958a3a71af418e46c88a4fb8689db25432 /src
parentd7af409f426fba1790149499dd26614b137a771a (diff)
Windows: fix scaling problem in Fl_Tile.
The problem was visible with test/tile for fractional scaling values when moving the vertical division.
Diffstat (limited to 'src')
-rw-r--r--src/Fl_win32.cxx2
1 files changed, 1 insertions, 1 deletions
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