mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-02 23:26:44 +00:00
WII: Fix 16bit cursors on some HE games
This commit is contained in:
parent
31539697dc
commit
50129178ef
@ -333,16 +333,19 @@ void OSystem_Wii::setPalette(const byte *colors, uint start, uint num) {
|
||||
|
||||
gfx_tex_flush_palette(&_texGame);
|
||||
|
||||
s = colors;
|
||||
d = _cursorPalette;
|
||||
|
||||
for (uint i = 0; i < num; ++i) {
|
||||
d[start + i] = Graphics::ARGBToColor<Graphics::ColorMasks<3444> >(0xff, s[0], s[1], s[2]);
|
||||
s += 4;
|
||||
}
|
||||
|
||||
if (_cursorPaletteDisabled) {
|
||||
assert(_texMouse.palette);
|
||||
|
||||
s = colors;
|
||||
d = _texMouse.palette;
|
||||
|
||||
for (uint i = 0; i < num; ++i) {
|
||||
d[start + i] = Graphics::ARGBToColor<Graphics::ColorMasks<3444> >(0xff, s[0], s[1], s[2]);
|
||||
s += 4;
|
||||
}
|
||||
memcpy((u8 *)_texMouse.palette + start * 2,
|
||||
(u8 *)_cursorPalette + start * 2, num * 2);
|
||||
|
||||
_cursorPaletteDirty = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user