fix compile
svn-id: r42308
This commit is contained in:
parent
a4f3a83900
commit
ff208c5387
1 changed files with 1 additions and 1 deletions
|
@ -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::createFormatCLUT8;
|
||||
_cursorFormat = Graphics::PixelFormat::createFormatCLUT8();
|
||||
else if (format->bytesPerPixel <= _screenFormat.bytesPerPixel)
|
||||
_cursorFormat = *format;
|
||||
keycolor &= (1 << (_cursorFormat.bytesPerPixel << 3)) - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue