diff options
Diffstat (limited to 'graphics/cursorman.h')
-rw-r--r-- | graphics/cursorman.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/cursorman.h b/graphics/cursorman.h index ae7008f54c..b67241ab7b 100644 --- a/graphics/cursorman.h +++ b/graphics/cursorman.h @@ -181,13 +181,13 @@ private: Cursor(const byte *data, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor = 0xFFFFFFFF, int targetScale = 1, const Graphics::PixelFormat *format = NULL) { #ifdef ENABLE_RGB_COLOR if (!format) - _format = Graphics::PixelFormat::createFormatCLUT8(); + _format = Graphics::PixelFormat(1, 8, 8, 8, 8, 0, 0, 0, 0); else _format = *format; _size = w * h * _format.bytesPerPixel; _keycolor &= ((1 << (_format.bytesPerPixel << 3)) - 1); #else - _format = Graphics::PixelFormat::createFormatCLUT8(); + _format = Graphics::PixelFormat(1, 8, 8, 8, 8, 0, 0, 0, 0); _size = w * h; _keycolor &= 0xFF; #endif |