aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2018-07-12 00:41:19 +0200
committerEugene Sandulenko2018-07-12 00:41:19 +0200
commit55109eac0c790fe50643b0a8d10235bb1d96769d (patch)
tree32c75321cbce90ca4afb825ea9d88586e1e22114 /engines
parent5684134ef6acaaeaaf9e9f9936f327874daa7f30 (diff)
downloadscummvm-rg350-55109eac0c790fe50643b0a8d10235bb1d96769d.tar.gz
scummvm-rg350-55109eac0c790fe50643b0a8d10235bb1d96769d.tar.bz2
scummvm-rg350-55109eac0c790fe50643b0a8d10235bb1d96769d.zip
PINK: Pass palette to WindowManager
Diffstat (limited to 'engines')
-rw-r--r--engines/pink/director.cpp7
-rw-r--r--engines/pink/director.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/engines/pink/director.cpp b/engines/pink/director.cpp
index fa333e9b37..cbf44484a9 100644
--- a/engines/pink/director.cpp
+++ b/engines/pink/director.cpp
@@ -116,6 +116,13 @@ bool Director::isMenuActive() {
return _wm.isMenuActive();
}
+void Director::setPalette(const byte *palette) {
+ g_system->getPaletteManager()->setPalette(palette, 0, 256);
+
+ _wm.passPalette(palette, 256);
+}
+
+
void Director::addSprite(ActionCEL *sprite) {
_sprites.push_back(sprite);
int i;
diff --git a/engines/pink/director.h b/engines/pink/director.h
index 8117343293..127bdbff12 100644
--- a/engines/pink/director.h
+++ b/engines/pink/director.h
@@ -47,7 +47,7 @@ public:
void update();
bool processEvent(Common::Event &event);
- void setPalette(const byte *palette) { g_system->getPaletteManager()->setPalette(palette, 0, 256); }
+ void setPalette(const byte *palette);
void addSprite(ActionCEL *sprite);
void removeSprite(ActionCEL *sprite);