aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-03-06 14:12:40 +0000
committerTorbjörn Andersson2005-03-06 14:12:40 +0000
commite3105f926b1da0ffa737abcaf1bd9817743df415 (patch)
tree6a45844b7440f40d82ec2c9788e9f5c6bcfa1a8e /sword2
parentb7c2926a0b29d4eed35ecc440270eb1f0c8eddc6 (diff)
downloadscummvm-rg350-e3105f926b1da0ffa737abcaf1bd9817743df415.tar.gz
scummvm-rg350-e3105f926b1da0ffa737abcaf1bd9817743df415.tar.bz2
scummvm-rg350-e3105f926b1da0ffa737abcaf1bd9817743df415.zip
Applied patch #1155731, reducing the memory usage of the MPEG player by
about 8 MB. svn-id: r17007
Diffstat (limited to 'sword2')
-rw-r--r--sword2/driver/animation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sword2/driver/animation.cpp b/sword2/driver/animation.cpp
index 6efa697c4d..6d9a7db779 100644
--- a/sword2/driver/animation.cpp
+++ b/sword2/driver/animation.cpp
@@ -104,7 +104,7 @@ void AnimationState::drawYUV(int width, int height, byte *const *dat) {
#ifdef BACKEND_8BIT
_vm->_screen->plotYUV(lut, width, height, dat);
#else
- plotYUV(lookup, width, height, dat);
+ plotYUV(width, height, dat);
#endif
}
@@ -308,7 +308,7 @@ void MoviePlayer::playMPEG(const char *filename, MovieTextObject *text[], byte *
switch (event.type) {
#ifndef BACKEND_8BIT
case OSystem::EVENT_SCREEN_CHANGED:
- anim->invalidateLookup(true);
+ anim->buildLookup();
break;
#endif
case OSystem::EVENT_KEYDOWN: