aboutsummaryrefslogtreecommitdiff
path: root/engines/cine
diff options
context:
space:
mode:
authorMax Horn2011-02-07 17:52:38 +0000
committerMax Horn2011-02-07 17:52:38 +0000
commitab039812e7d0a0202317c61a2cb64874e4d0c410 (patch)
treec3069b36ba6e18068fa343416acf485e2d0728e4 /engines/cine
parent8981fa3f164aa8f397df2af8b85d6edfa4bdd883 (diff)
downloadscummvm-rg350-ab039812e7d0a0202317c61a2cb64874e4d0c410.tar.gz
scummvm-rg350-ab039812e7d0a0202317c61a2cb64874e4d0c410.tar.bz2
scummvm-rg350-ab039812e7d0a0202317c61a2cb64874e4d0c410.zip
COMMON: OSystem now has a PaletteManager
svn-id: r55806
Diffstat (limited to 'engines/cine')
-rw-r--r--engines/cine/pal.cpp6
-rw-r--r--engines/cine/pal.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/cine/pal.cpp b/engines/cine/pal.cpp
index 2109c15389..a074bd3f09 100644
--- a/engines/cine/pal.cpp
+++ b/engines/cine/pal.cpp
@@ -26,7 +26,7 @@
#include "cine/cine.h"
#include "cine/various.h"
#include "cine/pal.h"
-#include "common/system.h" // For g_system->setPalette
+#include "common/system.h" // For g_system->getPaletteManager()->setPalette
namespace Cine {
@@ -196,9 +196,9 @@ void Palette::setGlobalOSystemPalette() const {
for (uint i = 0; i < 16 * 4; ++i)
buf[16 * 4 + i] = buf[i] >> 1;
- g_system->setPalette(buf, 0, colorCount() * 2);
+ g_system->getPaletteManager()->setPalette(buf, 0, colorCount() * 2);
} else {
- g_system->setPalette(buf, 0, colorCount());
+ g_system->getPaletteManager()->setPalette(buf, 0, colorCount());
}
}
diff --git a/engines/cine/pal.h b/engines/cine/pal.h
index e5b318b24d..58d23e5bf0 100644
--- a/engines/cine/pal.h
+++ b/engines/cine/pal.h
@@ -159,7 +159,7 @@ public:
/** The original color format in which this palette was loaded. */
const Graphics::PixelFormat &colorFormat() const;
- /** Sets current palette to global OSystem's palette using g_system->setPalette. */
+ /** Sets current palette to global OSystem's palette using g_system->getPaletteManager()->setPalette. */
void setGlobalOSystemPalette() const;
/** Get the color at the given palette index. */