From e3105f926b1da0ffa737abcaf1bd9817743df415 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 6 Mar 2005 14:12:40 +0000 Subject: Applied patch #1155731, reducing the memory usage of the MPEG player by about 8 MB. svn-id: r17007 --- sword2/driver/animation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sword2') 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: -- cgit v1.2.3