diff options
Diffstat (limited to 'backends')
| -rw-r--r-- | backends/platform/wii/osystem_gfx.cpp | 11 | 
1 files changed, 6 insertions, 5 deletions
| diff --git a/backends/platform/wii/osystem_gfx.cpp b/backends/platform/wii/osystem_gfx.cpp index a4e45557f0..8dc18464a8 100644 --- a/backends/platform/wii/osystem_gfx.cpp +++ b/backends/platform/wii/osystem_gfx.cpp @@ -331,14 +331,15 @@ void OSystem_Wii::setPalette(const byte *colors, uint start, uint num) {  	gfx_tex_flush_palette(&_texGame); +	for (uint i = 0; i < num; ++i, s += 3) { +		d[start + i] = Graphics::ARGBToColor<Graphics::ColorMasks<3444> >(0xff, s[0], s[1], s[2]); +	} +  	if (_cursorPaletteDisabled) {  		assert(_texMouse.palette); -		s = colors; -		d = _texMouse.palette; - -		for (uint i = 0; i < num; ++i, s += 3) -			d[start + i] = Graphics::ARGBToColor<Graphics::ColorMasks<3444> >(0xff, s[0], s[1], s[2]); +		memcpy((u8 *)_texMouse.palette + start * 2, +			(u8 *)_cursorPalette + start * 2, num * 2);  		_cursorPaletteDirty = true;  	} | 
