aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorMax Horn2009-01-27 01:35:21 +0000
committerMax Horn2009-01-27 01:35:21 +0000
commit379fe274dfe713c508cff6908444ae87c722d124 (patch)
treeab0d959a24afe887f7aae0e08645cf94090e5874 /graphics
parent97153f9c3b17bb603e7f51fd872b0633924d0fe1 (diff)
downloadscummvm-rg350-379fe274dfe713c508cff6908444ae87c722d124.tar.gz
scummvm-rg350-379fe274dfe713c508cff6908444ae87c722d124.tar.bz2
scummvm-rg350-379fe274dfe713c508cff6908444ae87c722d124.zip
Replaced small lookup table in 2xsai by direct computation
svn-id: r36089
Diffstat (limited to 'graphics')
-rw-r--r--graphics/scaler/2xsai.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/graphics/scaler/2xsai.cpp b/graphics/scaler/2xsai.cpp
index 37b5457dd8..adea68ba78 100644
--- a/graphics/scaler/2xsai.cpp
+++ b/graphics/scaler/2xsai.cpp
@@ -38,12 +38,7 @@ static inline int GetResult(uint32 A, uint32 B, uint32 C, uint32 D) {
const int y2 = (bd & !ad);
const int x = x1+x2;
const int y = y1+y2;
- static const int rmap[3][3] = {
- {0, 0, -1},
- {0, 0, -1},
- {1, 1, 0}
- };
- return rmap[y][x];
+ return (y>>1) - (x>>1);
}
#define interpolate_1_1 interpolate16_1_1<Graphics::ColorMasks<bitFormat> >