From 40f950616397dad5833751b755c11f92f4462acb Mon Sep 17 00:00:00 2001 From: Marcus Comstedt Date: Thu, 7 Jan 2010 15:07:36 +0000 Subject: 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 --- graphics/cursorman.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'graphics/cursorman.h') diff --git a/graphics/cursorman.h b/graphics/cursorman.h index 3536f27f9e..e0f9fcda2d 100644 --- a/graphics/cursorman.h +++ b/graphics/cursorman.h @@ -72,7 +72,7 @@ public: * useful to push a "dummy" cursor and modify it later. The * cursor will be added to the stack, but not to the backend. */ - void pushCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor = 0xFFFFFFFF, int targetScale = 1, const Graphics::PixelFormat *format = NULL); + void pushCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, int targetScale = 1, const Graphics::PixelFormat *format = NULL); /** * Pop a cursor from the stack, and restore the previous one to the @@ -95,7 +95,7 @@ public: * @param format a pointer to the pixel format which the cursor graphic uses, * CLUT8 will be used if this is NULL or not specified. */ - void replaceCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor = 0xFFFFFFFF, int targetScale = 1, const Graphics::PixelFormat *format = NULL); + void replaceCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, int targetScale = 1, const Graphics::PixelFormat *format = NULL); /** * Pop all of the cursors and cursor palettes from their respective stacks. @@ -180,7 +180,7 @@ private: uint _size; - Cursor(const byte *data, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor = 0xFFFFFFFF, int targetScale = 1, const Graphics::PixelFormat *format = NULL); + Cursor(const byte *data, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, int targetScale = 1, const Graphics::PixelFormat *format = NULL); ~Cursor(); }; -- cgit v1.2.3