From b7e62e4b61c7552fa91c9dbdd9273b620d7f876b Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 5 May 2004 02:32:46 +0000 Subject: Extend setMouseCursor with additional keycolor parameter. Lets saga use 255 as white color. Made this function more safe by copying cursor data to newly created buffer. svn-id: r13777 --- common/system.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/system.h b/common/system.h index 2039085fdb..ec057dde63 100644 --- a/common/system.h +++ b/common/system.h @@ -357,8 +357,9 @@ public: * @param h height of the mouse cursor * @param hotspotX horizontal offset from the left side to the hotspot * @param hotspotY vertical offset from the top side to the hotspot + * @param keycolor transparency color index */ - virtual void setMouseCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY) = 0; + virtual void setMouseCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, byte keycolor = 255) = 0; //@} -- cgit v1.2.3