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 f5b60d76b9..a0f01886b2 100644 --- a/graphics/cursorman.h +++ b/graphics/cursorman.h @@ -185,11 +185,11 @@ private: else _format = *format; _size = w * h * _format.bytesPerPixel; - _keycolor &= ((1 << (_format.bytesPerPixel << 3)) - 1); + _keycolor = keycolor & ((1 << (_format.bytesPerPixel << 3)) - 1); #else _format = Graphics::PixelFormat::createFormatCLUT8(); _size = w * h; - _keycolor &= 0xFF; + _keycolor = keycolor & 0xFF; #endif _data = new byte[_size]; if (data && _data) |