aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/screen_lok.h
diff options
context:
space:
mode:
authorJohannes Schickel2009-06-29 18:00:18 +0000
committerJohannes Schickel2009-06-29 18:00:18 +0000
commit67f69bcaf2a0e425eb0799683fc631213775aabb (patch)
treeaaa6b93b19599af651d45522e247595706722b0c /engines/kyra/screen_lok.h
parentc810f9645af0259c2ff89a76bcc3d565f2f58601 (diff)
downloadscummvm-rg350-67f69bcaf2a0e425eb0799683fc631213775aabb.tar.gz
scummvm-rg350-67f69bcaf2a0e425eb0799683fc631213775aabb.tar.bz2
scummvm-rg350-67f69bcaf2a0e425eb0799683fc631213775aabb.zip
- 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
Diffstat (limited to 'engines/kyra/screen_lok.h')
-rw-r--r--engines/kyra/screen_lok.h5
1 files changed, 3 insertions, 2 deletions
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);