From 67f69bcaf2a0e425eb0799683fc631213775aabb Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 29 Jun 2009 18:00:18 +0000 Subject: - Get rid of code duplication for mouse cursor setup - Fix mouse cursor colors in LoL PC98 (This commit might introduce regressions, since it changes the key color the mouse cursor uses) svn-id: r41959 --- engines/kyra/screen_lok.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/kyra/screen_lok.h') diff --git a/engines/kyra/screen_lok.h b/engines/kyra/screen_lok.h index 7ab0bb2811..f845261f29 100644 --- a/engines/kyra/screen_lok.h +++ b/engines/kyra/screen_lok.h @@ -86,12 +86,13 @@ public: void fadePalette(const Palette &pal, int delay, const UpdateFunctor *upFunc = 0); void getFadeParams(const Palette &pal, int delay, int &delayInc, int &diff); int fadePalStep(const Palette &pal, int diff); - - void setMouseCursor(int x, int y, const byte *shape); private: void updateDirtyRectsOvl(); void convertTo16Colors(uint8 *page, int w, int h, int pitch, int keyColor = -1); + void postProcessCursor(uint8 *data, int width, int height, int pitch) { + convertTo16Colors(data, width, height, pitch, 255); + } void mergeOverlay(int x, int y, int w, int h); void set16ColorPalette(const uint8 *pal); -- cgit v1.2.3