aboutsummaryrefslogtreecommitdiff
path: root/common/scaler.cpp
diff options
context:
space:
mode:
authorMax Horn2003-09-29 23:34:43 +0000
committerMax Horn2003-09-29 23:34:43 +0000
commit7ccafa467cf2d913a8c11a0b440f40c7ba06adf2 (patch)
tree9c5232f7e27b34c5ccec6cb06a704a7fbdcc5f8b /common/scaler.cpp
parente75eba1a1fbdf2dd025bca6086d1c8b59d5f252f (diff)
downloadscummvm-rg350-7ccafa467cf2d913a8c11a0b440f40c7ba06adf2.tar.gz
scummvm-rg350-7ccafa467cf2d913a8c11a0b440f40c7ba06adf2.tar.bz2
scummvm-rg350-7ccafa467cf2d913a8c11a0b440f40c7ba06adf2.zip
synced hq2x with upstream changes; some performance tweaks to hq2x/hq3x (I think for bigger speed improvement we'd have to use ASM (with C++ fallback of course)...
svn-id: r10494
Diffstat (limited to 'common/scaler.cpp')
-rw-r--r--common/scaler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/scaler.cpp b/common/scaler.cpp
index 4bb51cc84e..d8522440af 100644
--- a/common/scaler.cpp
+++ b/common/scaler.cpp
@@ -175,10 +175,9 @@ void AdvMame2x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPi
A = B; B = C; C = *(p - nextlineSrc);
D = E; E = F; F = *(p);
G = H; H = I; I = *(p + nextlineSrc);
-
- *(q) = D == B && B != F && D != H ? D : E;
+ *(q + 0) = D == B && B != F && D != H ? D : E;
*(q + 1) = B == F && B != D && F != H ? F : E;
- *(q + nextlineDst) = D == H && D != B && H != F ? D : E;
+ *(q + nextlineDst + 0) = D == H && D != B && H != F ? D : E;
*(q + nextlineDst + 1) = H == F && D != H && B != F ? F : E;
q += 2;
}