From f1d9722f3bd58f7883f3e76c19d4a0133da73489 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 2 Jan 2019 18:18:11 -0800 Subject: GLK: FROTZ: Add support for pair windows to have more than 2 children This is primarily for the V6 games, which have up to 8 windows on-screen at the same time in arbitray positions ext --- engines/glk/window_pair.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/glk/window_pair.h') diff --git a/engines/glk/window_pair.h b/engines/glk/window_pair.h index 83cbcc884a..10d92648d0 100644 --- a/engines/glk/window_pair.h +++ b/engines/glk/window_pair.h @@ -24,15 +24,17 @@ #define GLK_WINDOW_PAIR_H #include "glk/windows.h" +#include "glk/utils.h" namespace Glk { /** - * Pair window + * Acts as a container of child windows. Under most cases there will be exactly two children, + * though in a special new "OnTop" mode, there can be more than two */ class PairWindow : public Window { public: - Window *_child1, *_child2; + Array _children; // split info... uint _dir; ///< winmethod_Left, Right, Above, Below, or OnTop -- cgit v1.2.3