summaryrefslogtreecommitdiff
path: root/src/blitter/32bpp_anim.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-06-22 23:15:27 +0000
committersmatz <smatz@openttd.org>2009-06-22 23:15:27 +0000
commitd703f0c3b527f1c1f324875762293929c6fbb932 (patch)
treeff1d89bd4abc675ae5dfe258ec16363ac529b920 /src/blitter/32bpp_anim.cpp
parent4f0e62deb63afa2019c0e2d1d2ea4ca552743998 (diff)
downloadopenttd-d703f0c3b527f1c1f324875762293929c6fbb932.tar.xz
(svn r16628) -Codechange: remove one gcc2 hack
Diffstat (limited to 'src/blitter/32bpp_anim.cpp')
-rw-r--r--src/blitter/32bpp_anim.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blitter/32bpp_anim.cpp b/src/blitter/32bpp_anim.cpp
index 8dbcb0043..1c72a1382 100644
--- a/src/blitter/32bpp_anim.cpp
+++ b/src/blitter/32bpp_anim.cpp
@@ -97,7 +97,7 @@ inline void Blitter_32bppAnim::Draw(const Blitter::BlitterParams *bp, ZoomLevel
uint m = *src_n;
/* In case the m-channel is zero, do not remap this pixel in any way */
if (m == 0) {
- *dst = *src_px;
+ *dst = src_px->data;
*anim = 0;
} else {
uint r = remap[m];
@@ -161,7 +161,7 @@ inline void Blitter_32bppAnim::Draw(const Blitter::BlitterParams *bp, ZoomLevel
uint m = *src_n++;
/* Above 217 (PALETTE_ANIM_SIZE_START) is palette animation */
*anim++ = m;
- *dst++ = (m >= PALETTE_ANIM_SIZE_START) ? this->LookupColourInPalette(m) : *src_px;
+ *dst++ = (m >= PALETTE_ANIM_SIZE_START) ? this->LookupColourInPalette(m) : src_px->data;
src_px++;
} while (--n != 0);
} else {