diff options
author | Max Horn | 2003-06-12 15:20:58 +0000 |
---|---|---|
committer | Max Horn | 2003-06-12 15:20:58 +0000 |
commit | 01cb6e2ab9aa8270b7116782898a386f13b67036 (patch) | |
tree | 1ae0d29fdc2b8e7f142a6045bec492415b318919 /common | |
parent | c26bdae2071aa510290ee61a366aee8e0aab715e (diff) | |
download | scummvm-rg350-01cb6e2ab9aa8270b7116782898a386f13b67036.tar.gz scummvm-rg350-01cb6e2ab9aa8270b7116782898a386f13b67036.tar.bz2 scummvm-rg350-01cb6e2ab9aa8270b7116782898a386f13b67036.zip |
indention
svn-id: r8447
Diffstat (limited to 'common')
-rw-r--r-- | common/scaler.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/common/scaler.cpp b/common/scaler.cpp index 7c9a5020c8..c10bcccfab 100644 --- a/common/scaler.cpp +++ b/common/scaler.cpp @@ -359,34 +359,30 @@ void _2xSaI(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch colorP = *(bP + 2 * nextlineSrc + 2); if ((colorA == colorD) && (colorB != colorC)) { - if (((colorA == colorE) && (colorB == colorL)) || ((colorA == colorC) && (colorA == colorF) - && (colorB != colorE) - && (colorB == colorJ))) { + if (((colorA == colorE) && (colorB == colorL)) || + ((colorA == colorC) && (colorA == colorF) && (colorB != colorE) && (colorB == colorJ))) { product = colorA; } else { product = INTERPOLATE(colorA, colorB); } - if (((colorA == colorG) && (colorC == colorO)) || ((colorA == colorB) && (colorA == colorH) - && (colorG != colorC) - && (colorC == colorM))) { + if (((colorA == colorG) && (colorC == colorO)) || + ((colorA == colorB) && (colorA == colorH) && (colorG != colorC) && (colorC == colorM))) { product1 = colorA; } else { product1 = INTERPOLATE(colorA, colorC); } product2 = colorA; } else if ((colorB == colorC) && (colorA != colorD)) { - if (((colorB == colorF) && (colorA == colorH)) || ((colorB == colorE) && (colorB == colorD) - && (colorA != colorF) - && (colorA == colorI))) { + if (((colorB == colorF) && (colorA == colorH)) || + ((colorB == colorE) && (colorB == colorD) && (colorA != colorF) && (colorA == colorI))) { product = colorB; } else { product = INTERPOLATE(colorA, colorB); } - if (((colorC == colorH) && (colorA == colorF)) || ((colorC == colorG) && (colorC == colorD) - && (colorA != colorH) - && (colorA == colorI))) { + if (((colorC == colorH) && (colorA == colorF)) || + ((colorC == colorG) && (colorC == colorD) && (colorA != colorH) && (colorA == colorI))) { product1 = colorC; } else { product1 = INTERPOLATE(colorA, colorC); |