aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2010-04-24 20:08:03 +0000
committerMartin Kiewitz2010-04-24 20:08:03 +0000
commit0422560c5c1523f1854c44c42bf74a242e4df5f4 (patch)
treeb15cd2fa7d6f6121ce1ed8812b1140107b9b8098 /engines/sci
parent61a57f53e530b89a458c979184c13c7ca398c9f9 (diff)
downloadscummvm-rg350-0422560c5c1523f1854c44c42bf74a242e4df5f4.tar.gz
scummvm-rg350-0422560c5c1523f1854c44c42bf74a242e4df5f4.tar.bz2
scummvm-rg350-0422560c5c1523f1854c44c42bf74a242e4df5f4.zip
SCI: beginUpdate()/endUpdate() of ports were introduced inside kAnimate() in SCI01 - fixes percentage bar not showing up in qfg1ega
svn-id: r48786
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/animate.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/sci/graphics/animate.cpp b/engines/sci/graphics/animate.cpp
index 7550e855bf..b0b4fed427 100644
--- a/engines/sci/graphics/animate.cpp
+++ b/engines/sci/graphics/animate.cpp
@@ -631,9 +631,14 @@ void GfxAnimate::kernelAnimate(reg_t listReference, bool cycle, int argc, reg_t
fill(old_picNotValid);
if (old_picNotValid) {
- _ports->beginUpdate(_ports->_picWind);
+ // beginUpdate()/endUpdate() were introduced SCI01
+ // calling those for SCI0 will work most of the time but breaks minor stuff like percentage bar of qfg1ega
+ // at the character skill screen
+ if (getSciVersion() >= SCI_VERSION_01)
+ _ports->beginUpdate(_ports->_picWind);
update();
- _ports->endUpdate(_ports->_picWind);
+ if (getSciVersion() >= SCI_VERSION_01)
+ _ports->endUpdate(_ports->_picWind);
}
drawCels();