aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl
diff options
context:
space:
mode:
authorMatthew Hoops2009-11-15 21:49:03 +0000
committerMatthew Hoops2009-11-15 21:49:03 +0000
commitbf1ab2f1db932a82a57c971d3ee9676c901f30a9 (patch)
treed937828be79f7f798adb5462f1608ed505e0abb4 /backends/platform/sdl
parentf6eae4aae526d9e8b992e01bf6f8c8f7263ba0a4 (diff)
downloadscummvm-rg350-bf1ab2f1db932a82a57c971d3ee9676c901f30a9.tar.gz
scummvm-rg350-bf1ab2f1db932a82a57c971d3ee9676c901f30a9.tar.bz2
scummvm-rg350-bf1ab2f1db932a82a57c971d3ee9676c901f30a9.zip
Make _mouseKeyColor a uint32 when USE_RGB_COLOR is defined to fix key color with some cursors when using a >8bpp cursor.
svn-id: r45929
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r--backends/platform/sdl/sdl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/platform/sdl/sdl.h b/backends/platform/sdl/sdl.h
index 10dcb814cc..e6bd3b8159 100644
--- a/backends/platform/sdl/sdl.h
+++ b/backends/platform/sdl/sdl.h
@@ -401,7 +401,11 @@ protected:
byte *_mouseData;
SDL_Rect _mouseBackup;
MousePos _mouseCurState;
+#ifdef USE_RGB_COLOR
+ uint32 _mouseKeyColor;
+#else
byte _mouseKeyColor;
+#endif
int _cursorTargetScale;
bool _cursorPaletteDisabled;
SDL_Surface *_mouseOrigSurface;