diff options
author | Jody Northup | 2009-07-09 09:10:05 +0000 |
---|---|---|
committer | Jody Northup | 2009-07-09 09:10:05 +0000 |
commit | a4f3a8390068fc372a96d4473b91eb09158353ef (patch) | |
tree | 4d0d4b370e3f35e2ac85b5db4175f91258072e68 | |
parent | cdad3763dfbacf45599034358a32fc68032e1a30 (diff) | |
download | scummvm-rg350-a4f3a8390068fc372a96d4473b91eb09158353ef.tar.gz scummvm-rg350-a4f3a8390068fc372a96d4473b91eb09158353ef.tar.bz2 scummvm-rg350-a4f3a8390068fc372a96d4473b91eb09158353ef.zip |
corrected creation of one Graphics::PixelFormat to reflect the resurrection of Graphics::PixelFormat::createFormatCLUT8
svn-id: r42282
-rw-r--r-- | backends/platform/sdl/graphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/sdl/graphics.cpp b/backends/platform/sdl/graphics.cpp index 27f32ee8d2..3029f43d87 100644 --- a/backends/platform/sdl/graphics.cpp +++ b/backends/platform/sdl/graphics.cpp @@ -1379,7 +1379,7 @@ void OSystem_SDL::warpMouse(int x, int y) { void OSystem_SDL::setMouseCursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y, uint32 keycolor, int cursorTargetScale, const Graphics::PixelFormat *format) { #ifdef ENABLE_RGB_COLOR if (!format) - _cursorFormat = Graphics::PixelFormat(1,8,8,8,8,0,0,0,0); + _cursorFormat = Graphics::PixelFormat::createFormatCLUT8; else if (format->bytesPerPixel <= _screenFormat.bytesPerPixel) _cursorFormat = *format; keycolor &= (1 << (_cursorFormat.bytesPerPixel << 3)) - 1; |