aboutsummaryrefslogtreecommitdiff
path: root/engines/cine
diff options
context:
space:
mode:
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. */