aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
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/sci
parent9e7f0e4753636ace510d626be4b0ee22ab682269 (diff)
downloadscummvm-rg350-fb35c7f46f986a22235638e2946ba8492e735109.tar.gz
scummvm-rg350-fb35c7f46f986a22235638e2946ba8492e735109.tar.bz2
scummvm-rg350-fb35c7f46f986a22235638e2946ba8492e735109.zip
VIDEO: Remove setSystemPalette()
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/frameout.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp
index fedae2eb6f..0056f6c78b 100644
--- a/engines/sci/graphics/frameout.cpp
+++ b/engines/sci/graphics/frameout.cpp
@@ -28,6 +28,7 @@
#include "common/system.h"
#include "common/textconsole.h"
#include "engines/engine.h"
+#include "graphics/palette.h"
#include "graphics/surface.h"
#include "sci/sci.h"
@@ -494,7 +495,7 @@ void GfxFrameout::showVideo() {
uint16 y = videoDecoder->getPos().y;
if (videoDecoder->hasDirtyPalette())
- videoDecoder->setSystemPalette();
+ g_system->getPaletteManager()->setPalette(videoDecoder->getPalette(), 0, 256);
while (!g_engine->shouldQuit() && !videoDecoder->endOfVideo() && !skipVideo) {
if (videoDecoder->needsUpdate()) {
@@ -503,7 +504,7 @@ void GfxFrameout::showVideo() {
g_system->copyRectToScreen(frame->pixels, frame->pitch, x, y, frame->w, frame->h);
if (videoDecoder->hasDirtyPalette())
- videoDecoder->setSystemPalette();
+ g_system->getPaletteManager()->setPalette(videoDecoder->getPalette(), 0, 256);
g_system->updateScreen();
}