From 3c9987c0a7566f99da637a83c9a3fe64b160e6e4 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 19 Oct 2018 20:58:55 -0700 Subject: GLK: Fixes for window initialization --- engines/gargoyle/windows.h | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'engines/gargoyle/windows.h') diff --git a/engines/gargoyle/windows.h b/engines/gargoyle/windows.h index 02fa7aab35..112e903beb 100644 --- a/engines/gargoyle/windows.h +++ b/engines/gargoyle/windows.h @@ -117,6 +117,11 @@ public: * Set the current output stream */ void setCurrent(Common::WriteStream *stream); + + /** + * Repaint an area of the windows + */ + void repaint(const Common::Rect &box); }; /** @@ -442,21 +447,21 @@ public: */ class PairWindow : public Window { public: - Window *child1, *child2; + Window *_child1, *_child2; /* split info... */ - glui32 dir; ///< winmethod_Left, Right, Above, or Below - int vertical, backward; ///< flags - glui32 division; ///< winmethod_Fixed or winmethod_Proportional - Window *key; ///< NULL or a leaf-descendant (not a Pair) - int keydamage; ///< used as scratch space in window closing - glui32 size; ///< size value - glui32 wborder; ///< winMethod_Border, NoBorder + glui32 _dir; ///< winmethod_Left, Right, Above, or Below + bool _vertical, _backward; ///< flags + glui32 _division; ///< winmethod_Fixed or winmethod_Proportional + Window *_key; ///< NULL or a leaf-descendant (not a Pair) + int _keydamage; ///< used as scratch space in window closing + glui32 _size; ///< size value + glui32 _wborder; ///< winMethod_Border, NoBorder public: /** * Constructor */ - PairWindow(Windows *windows, glui32 method, Window *_key, glui32 _size); + PairWindow(Windows *windows, glui32 method, Window *key, glui32 size); /** * Rearranges the window -- cgit v1.2.3