From 516f9e78857c0d48c9024e131eb468531097edd5 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 6 Jan 2024 14:52:57 +0100 Subject: Fix "When zooming window, the window size range must be adjusted" (#880) --- src/Fl_Window_Driver.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Fl_Window_Driver.cxx b/src/Fl_Window_Driver.cxx index 085c9f61e..c09581625 100644 --- a/src/Fl_Window_Driver.cxx +++ b/src/Fl_Window_Driver.cxx @@ -244,6 +244,7 @@ void Fl_Window_Driver::resize_after_scale_change(int ns, float old_f, float new_ if (Y+H/2 < sY) Y = sY-H/2+d; else if (Y+H/2 > sY+sH-1) Y = sY+sH-1-H/2-d; } + size_range(); // adjust the OS-level boundary size values for the window (#880) is_a_rescale_ = true; pWindow->resize(X, Y, W, H); is_a_rescale_ = false; -- cgit v1.2.3