summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2026-01-19 10:01:30 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2026-01-19 10:01:30 +0100
commitbde474e0af2027506a0a3de981d03d93433de2b5 (patch)
treea537869b6f3d856fd76672e87dd426b2621df80e
parentf3cbce2e92c6088e7bb062d7094a7e6b23fbdb56 (diff)
Windows: error dragging window between differently scaled display - cont'd (#1127)
-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 da7f70e4d..52b3af305 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -1275,7 +1275,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
sd->update_scaling_capability();
} else if (ns != old_ns) {
// jump window with Windows+Shift+L|R-arrow to other screen with other DPI
- if (ns >= 0) window->screen_num(ns);
+ if (ns >= 0) Fl_Window_Driver::driver(window)->screen_num(ns);
UINT flags = SWP_NOSENDCHANGING | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOCOPYBITS;
SetWindowPos(hWnd, NULL, lParam_rect->left, lParam_rect->top,
lParam_rect->right - lParam_rect->left,