From 3f052213346e7887c85b6a2a5d31b24015d672bc Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 2 Mar 2011 23:36:13 +0100 Subject: SCI: Always add new windows to back of list up to SCI_1_EGA_ONLY. Confirmed this behaviour in KQ1sci, KQ4, Iceman and QfG2. Hoyle3-demo remains an exception. --- engines/sci/graphics/ports.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'engines/sci/graphics/ports.cpp') diff --git a/engines/sci/graphics/ports.cpp b/engines/sci/graphics/ports.cpp index d971b77f98..c89f46b300 100644 --- a/engines/sci/graphics/ports.cpp +++ b/engines/sci/graphics/ports.cpp @@ -308,10 +308,11 @@ Window *GfxPorts::addWindow(const Common::Rect &dims, const Common::Rect *restor _windowsById[id] = pwnd; - - // Hoyle3-demo's NewWindow always adds windows to the back of the list. - // TODO: Determine if other interpreters do the same. - bool forceToBack = (g_sci->getGameId() == GID_HOYLE3 && g_sci->isDemo()); + // KQ1sci, KQ4, iceman, QfG2 always add windows to the back of the list. + // KQ5CD checks style. + // Hoyle3-demo also always adds to the back (#3036763). + bool forceToBack = (getSciVersion() <= SCI_VERSION_1_EGA_ONLY) || + (g_sci->getGameId() == GID_HOYLE3 && g_sci->isDemo()); if (!forceToBack && (style & SCI_WINDOWMGR_STYLE_TOPMOST)) _windowList.push_front(pwnd); -- cgit v1.2.3