summaryrefslogtreecommitdiff
path: root/src/Fl_x.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-04 16:25:45 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-04 16:25:45 +0100
commita0ff3f6f5c6994f4260685d70cc5f8349a8fdb69 (patch)
treeddf7d19a45efc422aa0eeef16bdf2336163d8018 /src/Fl_x.cxx
parent7777a503ada1d7d7ae2e30897efa52bcd0b36df6 (diff)
Fix Scaling window up/down also scales X/Y position on secondary displays only (#925)
Diffstat (limited to 'src/Fl_x.cxx')
-rw-r--r--src/Fl_x.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 50777e67e..67ed872dc 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -1205,7 +1205,7 @@ static void react_to_screen_reconfiguration() {
float new_scale = Fl::screen_driver()->scale(0);
for (int screen = 0; screen < Fl::screen_count(); screen++) {
Fl::screen_driver()->scale(screen, 1);
- Fl::screen_driver()->rescale_all_windows_from_screen(screen, new_scale);
+ Fl::screen_driver()->rescale_all_windows_from_screen(screen, new_scale, 1);
}
}
delete[] scales;
@@ -1227,7 +1227,7 @@ static void after_display_rescale(float *p_current_xft_dpi) {
*p_current_xft_dpi = dpi;
float f = dpi/96.;
for (int i = 0; i < Fl::screen_count(); i++)
- Fl::screen_driver()->rescale_all_windows_from_screen(i, f);
+ Fl::screen_driver()->rescale_all_windows_from_screen(i, f, f);
}
}
break;