diff options
author | smatz <smatz@openttd.org> | 2009-06-22 23:15:27 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-06-22 23:15:27 +0000 |
commit | d703f0c3b527f1c1f324875762293929c6fbb932 (patch) | |
tree | ff1d89bd4abc675ae5dfe258ec16363ac529b920 /src/blitter/32bpp_anim.cpp | |
parent | 4f0e62deb63afa2019c0e2d1d2ea4ca552743998 (diff) | |
download | openttd-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.cpp | 4 |
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 { |