From 5801dd206412542f4f93391c7cb9e0c38cca7697 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Fri, 9 Oct 2009 19:50:20 +0000 Subject: SCI/newgui: moved priority band initialization to init() call of SciGui to avoid having to call usesOldGfxFunctions() within constructor, where it would crash on some games (sq3) svn-id: r44844 --- engines/sci/gui/gui.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/sci/gui/gui.cpp') diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp index 2f5b499969..d4b0a20b1d 100644 --- a/engines/sci/gui/gui.cpp +++ b/engines/sci/gui/gui.cpp @@ -64,6 +64,12 @@ SciGui::~SciGui() { } void SciGui::init(bool usesOldGfxFunctions) { + // Initialize priority bands + if (usesOldGfxFunctions) { + _gfx->PriorityBandsInit(15, 42, 200); + } else { + _gfx->PriorityBandsInit(14, 42, 190); + } } -- cgit v1.2.3