diff options
-rw-r--r-- | engines/pink/director.cpp | 7 | ||||
-rw-r--r-- | engines/pink/director.h | 2 |
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); |