aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJody Northup2009-06-05 08:09:37 +0000
committerJody Northup2009-06-05 08:09:37 +0000
commit9789ba7f28d2c0a093adda01435306f28e91fede (patch)
treeced66d59e1c0b16a59ca36196159378b871d4333 /common
parent662a305752214564a9db0ac2d61594367067efa1 (diff)
downloadscummvm-rg350-9789ba7f28d2c0a093adda01435306f28e91fede.tar.gz
scummvm-rg350-9789ba7f28d2c0a093adda01435306f28e91fede.tar.bz2
scummvm-rg350-9789ba7f28d2c0a093adda01435306f28e91fede.zip
Corrected backend to be able to accept a 16-bit mouseKeyColor without overflow
svn-id: r41194
Diffstat (limited to 'common')
-rw-r--r--common/system.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/system.h b/common/system.h
index 5b72dab7c1..eb01093049 100644
--- a/common/system.h
+++ b/common/system.h
@@ -687,8 +687,13 @@ public:
* @param keycolor transparency color index
* @param cursorTargetScale scale factor which cursor is designed for
*/
+#ifdef ENABLE_16BIT
+ //HACK made a second method as a quick and dirty workaround to avoid linker errors with engine libs
+ virtual void setMouseCursor16(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, uint16 keycolor = 65535, int cursorTargetScale = 1) = 0;
+#endif
virtual void setMouseCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, byte keycolor = 255, int cursorTargetScale = 1) = 0;
+
/**
* Replace the specified range of cursor the palette with new colors.
* The palette entries from 'start' till (start+num-1) will be replaced - so