summaryrefslogtreecommitdiff
path: root/src/blitter/32bpp_anim.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2012-04-10 20:16:51 +0000
committerrubidium <rubidium@openttd.org>2012-04-10 20:16:51 +0000
commit54e36c4ff83d86346479bfae0e9bcef64afb1a49 (patch)
treee5a3d23f17267095d47dda66face3f2e7c77d67a /src/blitter/32bpp_anim.hpp
parentbf867483005c034e0040a976b94a2dc8698bd35f (diff)
downloadopenttd-54e36c4ff83d86346479bfae0e9bcef64afb1a49.tar.xz
(svn r24111) -Codechange: use Colour more instead of manually bitstuffing
Diffstat (limited to 'src/blitter/32bpp_anim.hpp')
-rw-r--r--src/blitter/32bpp_anim.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blitter/32bpp_anim.hpp b/src/blitter/32bpp_anim.hpp
index 43e074ce5..c03062dc2 100644
--- a/src/blitter/32bpp_anim.hpp
+++ b/src/blitter/32bpp_anim.hpp
@@ -47,9 +47,9 @@ public:
/**
* Look up the colour in the current palette.
*/
- inline uint32 LookupColourInPalette(uint index)
+ inline Colour LookupColourInPalette(uint index)
{
- return this->palette.palette[index].data;
+ return this->palette.palette[index];
}
template <BlitterMode mode> void Draw(const Blitter::BlitterParams *bp, ZoomLevel zoom);