mirror of
https://github.com/fltk/fltk.git
synced 2026-05-25 09:17:49 +08:00
Fix "When zooming window, the window size range must be adjusted" (#880)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user