From 0422560c5c1523f1854c44c42bf74a242e4df5f4 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sat, 24 Apr 2010 20:08:03 +0000 Subject: SCI: beginUpdate()/endUpdate() of ports were introduced inside kAnimate() in SCI01 - fixes percentage bar not showing up in qfg1ega svn-id: r48786 --- engines/sci/graphics/animate.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'engines/sci') 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(); -- cgit v1.2.3