Correct use of Fl_Window::no_fullscreen_w|h private variables.

These variables store the size of a window to be used when it's un-fullscreened or un-maximized.
They equal 0 when a window is neither fullscreen nor maximized.
They are given a meaningful value when a window is turned fullscreen or maximized.
They are reset to 0 just after the window is un-fullscreened or un-maximized.
This commit is contained in:
ManoloFLTK
2026-05-29 10:21:23 +02:00
parent d7266f5248
commit 34c23c6b71
+2 -2
View File
@@ -58,8 +58,8 @@ void Fl_Window::_Fl_Window() {
minw_ = maxw_ = minh_ = maxh_ = 0;
no_fullscreen_x = 0;
no_fullscreen_y = 0;
no_fullscreen_w = w();
no_fullscreen_h = h();
no_fullscreen_w = 0;
no_fullscreen_h = 0;
fullscreen_screen_top = -1;
fullscreen_screen_bottom = -1;
fullscreen_screen_left = -1;