aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
diff options
context:
space:
mode:
authorMatthew Hoops2012-08-16 13:30:32 -0400
committerMatthew Hoops2012-08-16 13:30:32 -0400
commitfb35c7f46f986a22235638e2946ba8492e735109 (patch)
treedf4a92a5f39b65ff4c5d3c4c8f8260429d1659a3 /engines/sword2
parent9e7f0e4753636ace510d626be4b0ee22ab682269 (diff)
downloadscummvm-rg350-fb35c7f46f986a22235638e2946ba8492e735109.tar.gz
scummvm-rg350-fb35c7f46f986a22235638e2946ba8492e735109.tar.bz2
scummvm-rg350-fb35c7f46f986a22235638e2946ba8492e735109.zip
VIDEO: Remove setSystemPalette()
Diffstat (limited to 'engines/sword2')
-rw-r--r--engines/sword2/animation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sword2/animation.cpp b/engines/sword2/animation.cpp
index e603925e73..24b52cd85a 100644
--- a/engines/sword2/animation.cpp
+++ b/engines/sword2/animation.cpp
@@ -38,6 +38,8 @@
#include "sword2/screen.h"
#include "sword2/animation.h"
+#include "graphics/palette.h"
+
#include "gui/message.h"
#include "video/dxa_decoder.h"
@@ -330,7 +332,7 @@ bool MoviePlayer::playVideo() {
}
if (_decoder->hasDirtyPalette()) {
- _decoder->setSystemPalette();
+ _vm->_system->getPaletteManager()->setPalette(_decoder->getPalette(), 0, 256);
uint32 maxWeight = 0;
uint32 minWeight = 0xFFFFFFFF;