corrected creation of one Graphics::PixelFormat to reflect the resurrection of Graphics::PixelFormat::createFormatCLUT8

svn-id: r42282
This commit is contained in:
Jody Northup 2009-07-09 09:10:05 +00:00
parent cdad3763df
commit a4f3a83900

View file

@ -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;