diff options
author | Max Horn | 2006-04-17 18:23:16 +0000 |
---|---|---|
committer | Max Horn | 2006-04-17 18:23:16 +0000 |
commit | c128bad7df4d79368e854eb0ab8b8844550b2d43 (patch) | |
tree | 7258895552d74aaf7b4d1b7b4e829b1c6db67856 /graphics | |
parent | b47e531425a00cd29e81d4ad98b3be2fd6f4189b (diff) | |
download | scummvm-rg350-c128bad7df4d79368e854eb0ab8b8844550b2d43.tar.gz scummvm-rg350-c128bad7df4d79368e854eb0ab8b8844550b2d43.tar.bz2 scummvm-rg350-c128bad7df4d79368e854eb0ab8b8844550b2d43.zip |
Simple optimization
svn-id: r21982
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/scaler/2xsai.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/graphics/scaler/2xsai.cpp b/graphics/scaler/2xsai.cpp index 7ed60bc6dd..abc1673496 100644 --- a/graphics/scaler/2xsai.cpp +++ b/graphics/scaler/2xsai.cpp @@ -193,15 +193,13 @@ void SuperEagleTemplate(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uin if (color2 == color6) { product1b = product2a = color2; if ((color1 == color2) || (color6 == colorB2)) { - product1a = interpolate32_1_1(color2, color5); - product1a = interpolate32_1_1(color2, product1a); + product1a = interpolate32_3_1(color2, color5); } else { product1a = interpolate32_1_1(color5, color6); } if ((color6 == colorS2) || (color2 == colorA1)) { - product2b = interpolate32_1_1(color2, color3); - product2b = interpolate32_1_1(color2, product2b); + product2b = interpolate32_3_1(color2, color3); } else { product2b = interpolate32_1_1(color2, color3); } @@ -219,15 +217,13 @@ void SuperEagleTemplate(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uin product2b = product1a = color5; if ((colorB1 == color5) || (color3 == colorS1)) { - product1b = interpolate32_1_1(color5, color6); - product1b = interpolate32_1_1(color5, product1b); + product1b = interpolate32_3_1(color5, color6); } else { product1b = interpolate32_1_1(color5, color6); } if ((color3 == colorA2) || (color4 == color5)) { - product2a = interpolate32_1_1(color5, color2); - product2a = interpolate32_1_1(color5, product2a); + product2a = interpolate32_3_1(color5, color2); } else { product2a = interpolate32_1_1(color2, color3); } |