mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-03 07:59:38 +00:00
Further fixed the setEntry method to make it Endian safe
svn-id: r48404
This commit is contained in:
parent
02b1e3278a
commit
5d85ad0759
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user