aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2014-03-27 00:50:58 +0100
committerJohannes Schickel2014-03-27 00:50:58 +0100
commit91165bd84135bb3ecd5476d9a2d89b06cca527ef (patch)
treebfcaa94f6aea4fdb4671ebdcae2cc18ec8cbf1a3
parent0b691bbbd2d2064638a21cbbf11d83f2c7c2390a (diff)
parent4ca33e264802ec4c679c8b129ca461bb1e9c7f8d (diff)
downloadscummvm-rg350-91165bd84135bb3ecd5476d9a2d89b06cca527ef.tar.gz
scummvm-rg350-91165bd84135bb3ecd5476d9a2d89b06cca527ef.tar.bz2
scummvm-rg350-91165bd84135bb3ecd5476d9a2d89b06cca527ef.zip
Merge pull request #452 from lordhoto/wii-16bit-cursor
WII: Fix color key handling for 16bit mouse cursors.
-rw-r--r--backends/platform/wii/osystem_gfx.cpp4
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++;
}