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_optimized.cpp | |
parent | 4f0e62deb63afa2019c0e2d1d2ea4ca552743998 (diff) | |
download | openttd-d703f0c3b527f1c1f324875762293929c6fbb932.tar.xz |
(svn r16628) -Codechange: remove one gcc2 hack
Diffstat (limited to 'src/blitter/32bpp_optimized.cpp')
-rw-r--r-- | src/blitter/32bpp_optimized.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/blitter/32bpp_optimized.cpp b/src/blitter/32bpp_optimized.cpp index ae360c99b..d4827e788 100644 --- a/src/blitter/32bpp_optimized.cpp +++ b/src/blitter/32bpp_optimized.cpp @@ -110,7 +110,7 @@ inline void Blitter_32bppOptimized::Draw(const Blitter::BlitterParams *bp, ZoomL 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; } else { uint r = remap[m]; if (r != 0) *dst = this->LookupColourInPalette(r); @@ -162,7 +162,9 @@ inline void Blitter_32bppOptimized::Draw(const Blitter::BlitterParams *bp, ZoomL /* faster than memcpy(), n is usually low */ src_n += n; do { - *dst++ = *src_px++; + *dst = src_px->data; + dst++; + src_px++; } while (--n != 0); } else { src_n += n; |