diff options
author | smatz <smatz@openttd.org> | 2008-06-18 21:19:04 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-06-18 21:19:04 +0000 |
commit | 5259d13da7db6583b0ac2ead56572ced6c679dac (patch) | |
tree | 4997235d0f8568325d0c8f7c1412cca55e69496d /src/blitter | |
parent | 25db4b3aae9e534de31b1baf71d917f15675ef6e (diff) | |
download | openttd-5259d13da7db6583b0ac2ead56572ced6c679dac.tar.xz |
(svn r13571) -Codechange: define channels in struct Colour in different order on LE and BE machines
Diffstat (limited to 'src/blitter')
-rw-r--r-- | src/blitter/32bpp_base.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/blitter/32bpp_base.hpp b/src/blitter/32bpp_base.hpp index dca8728ad..aa3d8f72f 100644 --- a/src/blitter/32bpp_base.hpp +++ b/src/blitter/32bpp_base.hpp @@ -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]; } /** |