From 4ca33e264802ec4c679c8b129ca461bb1e9c7f8d Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 26 Mar 2014 00:39:27 +0100 Subject: WII: Fix color key handling for 16bit mouse cursors. This should fix bug #6108 "WII: Zak FM-TOWNS mouse cursor encased in blue box". --- backends/platform/wii/osystem_gfx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends') 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++; } -- cgit v1.2.3