diff options
author | rubidium <rubidium@openttd.org> | 2014-01-13 18:00:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-01-13 18:00:18 +0000 |
commit | 9a90bed79ba6e859df855a43abb715392899578b (patch) | |
tree | f018aba5edb462fdc7dbb83c3ec39f7840a27ab1 /src/blitter/32bpp_sse2.cpp | |
parent | 6e34672c6ca636b38ed3711f3f2be444ae12bfdf (diff) | |
download | openttd-9a90bed79ba6e859df855a43abb715392899578b.tar.xz |
(svn r26251) -Codechange: prepare Draw code for code deduplication (MJP)
Diffstat (limited to 'src/blitter/32bpp_sse2.cpp')
-rw-r--r-- | src/blitter/32bpp_sse2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blitter/32bpp_sse2.cpp b/src/blitter/32bpp_sse2.cpp index 07ba2f208..a5d8a1987 100644 --- a/src/blitter/32bpp_sse2.cpp +++ b/src/blitter/32bpp_sse2.cpp @@ -77,7 +77,7 @@ inline void Blitter_32bppSSE2::Draw(const Blitter::BlitterParams *bp, ZoomLevel src += 2; dst += 2; } - if (bt_last == BT_ODD) { + if ((bt_last == BT_NONE && effective_width & 1) || bt_last == BT_ODD) { __m128i srcABCD = _mm_cvtsi32_si128(src->data); __m128i dstABCD = _mm_cvtsi32_si128(dst->data); ALPHA_BLEND_2(); @@ -153,7 +153,7 @@ bmcr_alpha_blend_single: src += 2; dst += 2; } - if (bp->width & 1) { + if ((bt_last == BT_NONE && bp->width & 1) || bt_last == BT_ODD) { __m128i srcABCD = _mm_cvtsi32_si128(src->data); __m128i dstABCD = _mm_cvtsi32_si128(dst->data); DARKEN_2(); |