diff options
author | Jody Northup | 2009-06-16 05:33:11 +0000 |
---|---|---|
committer | Jody Northup | 2009-06-16 05:33:11 +0000 |
commit | fb96e826f27b071d6696731f43cb5fa0d8760205 (patch) | |
tree | 8d7b4c0d1cc875fa623993818fde85c1b4569aae /backends/platform/sdl | |
parent | 3d9d542908323c3d0ce545589e5532175eda9063 (diff) | |
download | scummvm-rg350-fb96e826f27b071d6696731f43cb5fa0d8760205.tar.gz scummvm-rg350-fb96e826f27b071d6696731f43cb5fa0d8760205.tar.bz2 scummvm-rg350-fb96e826f27b071d6696731f43cb5fa0d8760205.zip |
Simplified cursor related 16-bit code.
svn-id: r41577
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r-- | backends/platform/sdl/graphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/sdl/graphics.cpp b/backends/platform/sdl/graphics.cpp index 2cee0ea83d..f4269b55b2 100644 --- a/backends/platform/sdl/graphics.cpp +++ b/backends/platform/sdl/graphics.cpp @@ -1379,11 +1379,11 @@ void OSystem_SDL::warpMouse(int x, int y) { } } -#ifdef ENABLE_16BIT void OSystem_SDL::setMouseCursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y, uint32 keycolor, int cursorTargetScale) { +#ifdef ENABLE_16BIT keycolor &= (1 << (_cursorFormat.bytesPerPixel << 3)) - 1; #else -void OSystem_SDL::setMouseCursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y, byte keycolor, int cursorTargetScale) { + keycolor &= 0xFF; #endif if (w == 0 || h == 0) |