diff options
author | rubidium <rubidium@openttd.org> | 2012-04-10 20:16:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2012-04-10 20:16:51 +0000 |
commit | 54e36c4ff83d86346479bfae0e9bcef64afb1a49 (patch) | |
tree | e5a3d23f17267095d47dda66face3f2e7c77d67a /src/blitter/32bpp_base.cpp | |
parent | bf867483005c034e0040a976b94a2dc8698bd35f (diff) | |
download | openttd-54e36c4ff83d86346479bfae0e9bcef64afb1a49.tar.xz |
(svn r24111) -Codechange: use Colour more instead of manually bitstuffing
Diffstat (limited to 'src/blitter/32bpp_base.cpp')
-rw-r--r-- | src/blitter/32bpp_base.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blitter/32bpp_base.cpp b/src/blitter/32bpp_base.cpp index 25f572043..cf2a78f7e 100644 --- a/src/blitter/32bpp_base.cpp +++ b/src/blitter/32bpp_base.cpp @@ -19,15 +19,15 @@ void *Blitter_32bppBase::MoveTo(void *video, int x, int y) void Blitter_32bppBase::SetPixel(void *video, int x, int y, uint8 colour) { - *((uint32 *)video + x + y * _screen.pitch) = LookupColourInPalette(colour); + *((Colour *)video + x + y * _screen.pitch) = LookupColourInPalette(colour); } void Blitter_32bppBase::DrawRect(void *video, int width, int height, uint8 colour) { - uint32 colour32 = LookupColourInPalette(colour); + Colour colour32 = LookupColourInPalette(colour); do { - uint32 *dst = (uint32 *)video; + Colour *dst = (Colour *)video; for (int i = width; i > 0; i--) { *dst = colour32; dst++; |