From 379fe274dfe713c508cff6908444ae87c722d124 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 27 Jan 2009 01:35:21 +0000 Subject: [PATCH] Replaced small lookup table in 2xsai by direct computation svn-id: r36089 --- graphics/scaler/2xsai.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/graphics/scaler/2xsai.cpp b/graphics/scaler/2xsai.cpp index 37b5457dd86..adea68ba787 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 >