aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/animator.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2007-02-01 14:57:48 +0000
committerJohannes Schickel2007-02-01 14:57:48 +0000
commit096f8958c59e57e51d6a9d9cdcf7d4fb5b18c892 (patch)
tree1b276d9a2bcd1e299d1d18bfc97ca939297277cc /engines/kyra/animator.cpp
parent61531524dc94d5289eeacce3d3549c64521f03cf (diff)
downloadscummvm-rg350-096f8958c59e57e51d6a9d9cdcf7d4fb5b18c892.tar.gz
scummvm-rg350-096f8958c59e57e51d6a9d9cdcf7d4fb5b18c892.tar.bz2
scummvm-rg350-096f8958c59e57e51d6a9d9cdcf7d4fb5b18c892.zip
- fixed the sprite updating
=> fixes gfx bug when Herman uses the saw => removed workaround for bug #1477364 ("KYRA1: Water dripping freezes") svn-id: r25323
Diffstat (limited to 'engines/kyra/animator.cpp')
-rw-r--r--engines/kyra/animator.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/engines/kyra/animator.cpp b/engines/kyra/animator.cpp
index 44220e856f..6ab6307880 100644
--- a/engines/kyra/animator.cpp
+++ b/engines/kyra/animator.cpp
@@ -206,25 +206,6 @@ void ScreenAnimator::preserveOrRestoreBackground(AnimObject *obj, bool restore)
if (restore) {
_screen->copyBlockToPage(_screen->_curPage, x << 3, y, width << 3, height, obj->background);
- // workaround for bug # 1477364 ("KYRA1: Water dripping freezes")
- // the problem is that the restored area to the 'backbuffer' (screen page 2)
- // isn't updated on the front buffer in that special scene, so we update
- // the frontbuffer (screen page 0) too if the object get's redrawn this time
- if (obj->refreshFlag && _vm->getScene() == 109) {
- // do not overwrite the interface
- if (x <= 1) {
- width--;
- x = 1;
- } else if (x >= 39) {
- x = 39 - width;
- }
- if (y <= 8) {
- y = 8;
- } else if (y >= 136) {
- y = 136 - height;
- }
- _screen->copyBlockToPage(0, x << 3, y, width << 3, height, obj->background);
- }
} else {
_screen->copyRegionToBuffer(_screen->_curPage, x << 3, y, width << 3, height, obj->background);
}