diff options
author | Paul Gilbert | 2010-03-26 10:21:08 +0000 |
---|---|---|
committer | Paul Gilbert | 2010-03-26 10:21:08 +0000 |
commit | 5d85ad075981cbc3426c881542d6a4f4a89f22dd (patch) | |
tree | 849e5acbb3c38465a84034a33d3288bedfa0c7de /engines/m4 | |
parent | 02b1e3278a659db490c88e44540ea72bab32799c (diff) | |
download | scummvm-rg350-5d85ad075981cbc3426c881542d6a4f4a89f22dd.tar.gz scummvm-rg350-5d85ad075981cbc3426c881542d6a4f4a89f22dd.tar.bz2 scummvm-rg350-5d85ad075981cbc3426c881542d6a4f4a89f22dd.zip |
Further fixed the setEntry method to make it Endian safe
svn-id: r48404
Diffstat (limited to 'engines/m4')
-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); } |