[Scummvm-cvs-logs] SF.net SVN: scummvm: [21982] scummvm/trunk/graphics/scaler/2xsai.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Mon Apr 17 11:24:05 CEST 2006
Revision: 21982
Author: fingolfin
Date: 2006-04-17 11:23:16 -0700 (Mon, 17 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=21982&view=rev
Log Message:
-----------
Simple optimization
Modified Paths:
--------------
scummvm/trunk/graphics/scaler/2xsai.cpp
Modified: scummvm/trunk/graphics/scaler/2xsai.cpp
===================================================================
--- scummvm/trunk/graphics/scaler/2xsai.cpp 2006-04-17 18:17:02 UTC (rev 21981)
+++ scummvm/trunk/graphics/scaler/2xsai.cpp 2006-04-17 18:23:16 UTC (rev 21982)
@@ -193,15 +193,13 @@
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 @@
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);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list