(svn r13571) -Codechange: define channels in struct Colour in different order on LE and BE machines

This commit is contained in:
smatz
2008-06-18 21:19:04 +00:00
parent 25db4b3aae
commit 5259d13da7
7 changed files with 32 additions and 24 deletions

View File

@@ -37,11 +37,10 @@ public:
/**
* Look up the colour in the current palette.
**/
static inline uint32 LookupColourInPalette(uint8 index)
*/
static inline uint32 LookupColourInPalette(uint index)
{
if (index == 0) return 0x00000000; // Full transparent pixel */
return ComposeColour(0xFF, _cur_palette[index].r, _cur_palette[index].g, _cur_palette[index].b);
return _cur_palette[index];
}
/**