aboutsummaryrefslogtreecommitdiff
path: root/graphics/cursorman.h
diff options
context:
space:
mode:
authorPaul Gilbert2009-08-26 11:19:28 +0000
committerPaul Gilbert2009-08-26 11:19:28 +0000
commitc98941d6d7e725c769263100bb73054f87d39c32 (patch)
tree57262a11f5f6ffd49a7eaa582a8d74bb18b083f0 /graphics/cursorman.h
parented6b9175d08937b9f40a37c6ab48e7e298fe4014 (diff)
downloadscummvm-rg350-c98941d6d7e725c769263100bb73054f87d39c32.tar.gz
scummvm-rg350-c98941d6d7e725c769263100bb73054f87d39c32.tar.bz2
scummvm-rg350-c98941d6d7e725c769263100bb73054f87d39c32.zip
Fix to correctly store a cursor's key colour, fixing key colour being lost when cursors are popped
svn-id: r43757
Diffstat (limited to 'graphics/cursorman.h')
-rw-r--r--graphics/cursorman.h4
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)