mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-08 20:07:11 +00:00
GRAPHICS: MACGUI: Actually store palette when it is passed
This commit is contained in:
parent
cdd2d9336b
commit
69343b2db8
@ -517,7 +517,9 @@ void MacWindowManager::passPalette(const byte *pal, uint size) {
|
||||
if (_colorBlack == -1 && p[0] == 0x00 && p[1] == 0x00 && p[2] == 0x00)
|
||||
_colorBlack = i;
|
||||
|
||||
p += 3;
|
||||
_palette[i * 3 + 0] = *p++;
|
||||
_palette[i * 3 + 1] = *p++;
|
||||
_palette[i * 3 + 2] = *p++;
|
||||
}
|
||||
|
||||
if (_colorWhite != -1 && _colorBlack != -1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user