From c98941d6d7e725c769263100bb73054f87d39c32 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 26 Aug 2009 11:19:28 +0000 Subject: Fix to correctly store a cursor's key colour, fixing key colour being lost when cursors are popped svn-id: r43757 --- graphics/cursorman.h | 4 ++-- 1 file 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) -- cgit v1.2.3