aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-01-06 13:11:10 +0000
committerFilippos Karapetis2010-01-06 13:11:10 +0000
commitce5320d814869bac2cbba78a0182077964f74b81 (patch)
treed433273ffd183740ba16bf0d7d43f55c4c52573c
parent7d7d23ce2b8d7d2a4725303d893f273f366be18c (diff)
downloadscummvm-rg350-ce5320d814869bac2cbba78a0182077964f74b81.tar.gz
scummvm-rg350-ce5320d814869bac2cbba78a0182077964f74b81.tar.bz2
scummvm-rg350-ce5320d814869bac2cbba78a0182077964f74b81.zip
SCI2+ games no longer use priority bands (fixes memory leaks in true hires games, too)
svn-id: r47076
-rw-r--r--engines/sci/graphics/gui.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sci/graphics/gui.cpp b/engines/sci/graphics/gui.cpp
index c4a974f18a..fb397031c8 100644
--- a/engines/sci/graphics/gui.cpp
+++ b/engines/sci/graphics/gui.cpp
@@ -80,7 +80,10 @@ void SciGui::init(bool usesOldGfxFunctions) {
_gfx->init(_text);
_windowMgr->init(_s->_gameId);
- initPriorityBands();
+ // Init priority bands for SCI0-SCI11. SCI2+ games don't
+ // use priority bands anymore
+ if (getSciVersion() <= SCI_VERSION_1_1)
+ initPriorityBands();
}
void SciGui::initPriorityBands() {