aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMarcus Comstedt2010-01-07 15:07:36 +0000
committerMarcus Comstedt2010-01-07 15:07:36 +0000
commit40f950616397dad5833751b755c11f92f4462acb (patch)
treec678ab133e8a45d689e65985636c69706f958afa /common
parent519e80ca8b57bb7b68a13cea6e83c0404fe0a414 (diff)
downloadscummvm-rg350-40f950616397dad5833751b755c11f92f4462acb.tar.gz
scummvm-rg350-40f950616397dad5833751b755c11f92f4462acb.tar.bz2
scummvm-rg350-40f950616397dad5833751b755c11f92f4462acb.zip
The default keycolor for mouse pointers used to be 255.
This makes sense as a default for CLUT8 modes, but not really for anything else. As part of the gsoc2009-16bit merge, the default was changed to "all ones", with extra code in the SDL backend to truncate this to the depth of the mode. However, "all ones" (white) still isn't a very useful default for RGB modes. So rather than jumping through hoops to provide a bad default, it's better to remove the default altogether. Engines which relied on the old default of 255 have been updated to specify it explicitly. svn-id: r47118
Diffstat (limited to 'common')
-rw-r--r--common/system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/system.h b/common/system.h
index 9790b09dd8..1e1ee5d886 100644
--- a/common/system.h
+++ b/common/system.h
@@ -779,7 +779,7 @@ public:
* @param cursorTargetScale scale factor which cursor is designed for
* @param format pointer to the pixel format which cursor graphic uses
*/
- virtual void setMouseCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor = 0xFFFFFFFF, int cursorTargetScale = 1, const Graphics::PixelFormat *format = NULL) = 0;
+ virtual void setMouseCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, int cursorTargetScale = 1, const Graphics::PixelFormat *format = NULL) = 0;
/**
* Replace the specified range of cursor the palette with new colors.