diff options
Diffstat (limited to 'engines/m4/graphics.cpp')
-rw-r--r-- | engines/m4/graphics.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/m4/graphics.cpp b/engines/m4/graphics.cpp index 55dd6158bf..c650e0abac 100644 --- a/engines/m4/graphics.cpp +++ b/engines/m4/graphics.cpp @@ -768,7 +768,11 @@ void Palette::grabPalette(byte *colors, uint start, uint num) { } void Palette::setEntry(uint index, uint8 r, uint8 g, uint8 b) { - uint32 c = (r << 16) | (g << 8) | b; + RGB8 c; + c.r = r; + c.g = g; + c.b = b; + c.u = 0; g_system->setPalette((const byte *)&c, index, 1); } |