Skip to content

Commit

Permalink
Merge pull request #452 from lordhoto/wii-16bit-cursor
Browse files Browse the repository at this point in the history
WII: Fix color key handling for 16bit mouse cursors.
  • Loading branch information
lordhoto committed Mar 26, 2014
2 parents 0b691bb + 4ca33e2 commit 91165bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backends/platform/wii/osystem_gfx.cpp
Expand Up @@ -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++;
}
Expand Down

0 comments on commit 91165bd

Please sign in to comment.