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.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engines/kyra/screen.h') diff --git a/engines/kyra/screen.h b/engines/kyra/screen.h index ba69aea3cc..3d2bda3b59 100644 --- a/engines/kyra/screen.h +++ b/engines/kyra/screen.h @@ -298,7 +298,7 @@ public: void hideMouse(); void showMouse(); bool isMouseVisible() const; - virtual void setMouseCursor(int x, int y, const byte *shape); + void setMouseCursor(int x, int y, const byte *shape); // rect handling virtual int getRectSize(int w, int h) = 0; @@ -396,8 +396,11 @@ protected: uint8 *_animBlockPtr; int _animBlockSize; + // mouse handling int _mouseLockCount; + virtual void postProcessCursor(uint8 *data, int w, int h, int pitch) {}; + enum { kMaxDirtyRects = 50 }; -- cgit v1.2.3