summaryrefslogtreecommitdiff
path: root/src/Fl_Window_Driver.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-02-03 09:34:19 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-02-03 09:34:19 +0100
commitbc764dabc1782bfde6d38b7da10b2d048a1d3634 (patch)
tree4433408dbbe54a7505018091560a9c8c38dba7f4 /src/Fl_Window_Driver.cxx
parent0c7ed2b44f3a0d87c5871846a7dc65cdefe65b01 (diff)
Avoid code repetitions among Fl_{X11_}Window_Driver::{un_}maximize() functions
Diffstat (limited to 'src/Fl_Window_Driver.cxx')
-rw-r--r--src/Fl_Window_Driver.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Window_Driver.cxx b/src/Fl_Window_Driver.cxx
index 982341e2f..f0fc76a89 100644
--- a/src/Fl_Window_Driver.cxx
+++ b/src/Fl_Window_Driver.cxx
@@ -2,7 +2,7 @@
// A base class for platform specific window handling code
// for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2022 by Bill Spitzak and others.
+// Copyright 1998-2025 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -289,13 +289,13 @@ void Fl_Window_Driver::maximize() {
int dh = (height - h() - dw);
bool need_hide_show = maximize_needs_hide();
if (need_hide_show) hide(); // pb may occur in subwindow without this
- resize(X + dw/2, Y + dh + dw/2, W - dw, H - dh - dw);
+ pWindow->resize(X + dw/2, Y + dh + dw/2, W - dw, H - dh - dw);
if (need_hide_show) show();
}
void Fl_Window_Driver::un_maximize() {
- resize(*no_fullscreen_x(), *no_fullscreen_y(),
+ pWindow->resize(*no_fullscreen_x(), *no_fullscreen_y(),
*no_fullscreen_w(), *no_fullscreen_h());
*no_fullscreen_x() = 0;
*no_fullscreen_y() = 0;