aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl
diff options
context:
space:
mode:
authorJody Northup2009-07-09 09:10:05 +0000
committerJody Northup2009-07-09 09:10:05 +0000
commita4f3a8390068fc372a96d4473b91eb09158353ef (patch)
tree4d0d4b370e3f35e2ac85b5db4175f91258072e68 /backends/platform/sdl
parentcdad3763dfbacf45599034358a32fc68032e1a30 (diff)
downloadscummvm-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
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r--backends/platform/sdl/graphics.cpp2
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;