diff options
author | Johannes Schickel | 2014-03-26 00:39:27 +0100 |
---|---|---|
committer | Johannes Schickel | 2014-03-26 00:39:27 +0100 |
commit | 4ca33e264802ec4c679c8b129ca461bb1e9c7f8d (patch) | |
tree | bba045f103520fd3a7a81ccd9832452599afbc07 | |
parent | 1c193ed1e5eb6372df181ed70913532d0dcc58f9 (diff) | |
download | scummvm-rg350-4ca33e264802ec4c679c8b129ca461bb1e9c7f8d.tar.gz scummvm-rg350-4ca33e264802ec4c679c8b129ca461bb1e9c7f8d.tar.bz2 scummvm-rg350-4ca33e264802ec4c679c8b129ca461bb1e9c7f8d.zip |
WII: Fix color key handling for 16bit mouse cursors.
This should fix bug #6108 "WII: Zak FM-TOWNS mouse cursor encased in blue box".
-rw-r--r-- | backends/platform/wii/osystem_gfx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/wii/osystem_gfx.cpp b/backends/platform/wii/osystem_gfx.cpp index 001cfea31e..bb91242f98 100644 --- a/backends/platform/wii/osystem_gfx.cpp +++ b/backends/platform/wii/osystem_gfx.cpp @@ -717,8 +717,8 @@ void OSystem_Wii::setMouseCursor(const void *buf, uint w, uint h, int hotspotX, u16 *d = (u16 *) tmp; for (u16 y = 0; y < h; ++y) { for (u16 x = 0; x < w; ++x) { - if (*s++ != _mouseKeyColor) - *d++ |= 7 << 12; + if (*s++ == _mouseKeyColor) + *d++ &= ~(7 << 12); else d++; } |