Mercurial > hg > openttd
diff src/blitter/32bpp_base.hpp @ 9551:8849c20f82c0 draft
(svn r13571) -Codechange: define channels in struct Colour in different order on LE and BE machines
author | smatz <smatz@openttd.org> |
---|---|
date | Wed, 18 Jun 2008 21:19:04 +0000 (2008-06-18) |
parents | d48433370037 |
children | 5c76c311cd7d |
line wrap: on
line diff
--- a/src/blitter/32bpp_base.hpp +++ b/src/blitter/32bpp_base.hpp @@ -37,11 +37,10 @@ /** * 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]; } /**