aboutsummaryrefslogtreecommitdiff
path: root/graphics/scaler/hq3x_i386.asm
diff options
context:
space:
mode:
authorMax Horn2009-01-27 21:44:24 +0000
committerMax Horn2009-01-27 21:44:24 +0000
commit1c0d2c5ab958790565a82ebce2aeb747417c561a (patch)
treeb20a6f85398448382318f2fbf6b34cd3de2c5419 /graphics/scaler/hq3x_i386.asm
parentc27c9c37b7548b785c38df8bfbd7437dc1a73bbd (diff)
downloadscummvm-rg350-1c0d2c5ab958790565a82ebce2aeb747417c561a.tar.gz
scummvm-rg350-1c0d2c5ab958790565a82ebce2aeb747417c561a.tar.bz2
scummvm-rg350-1c0d2c5ab958790565a82ebce2aeb747417c561a.zip
Fixed hq2x ASM scaler
svn-id: r36115
Diffstat (limited to 'graphics/scaler/hq3x_i386.asm')
-rw-r--r--graphics/scaler/hq3x_i386.asm13
1 files changed, 5 insertions, 8 deletions
diff --git a/graphics/scaler/hq3x_i386.asm b/graphics/scaler/hq3x_i386.asm
index c3d1daec37..d63dba23a5 100644
--- a/graphics/scaler/hq3x_i386.asm
+++ b/graphics/scaler/hq3x_i386.asm
@@ -208,17 +208,15 @@ SECTION .text
; Mix three pixels with weight 2, 7, and 7, respectively: (c1*2+(c2+c3)*7)/16;
%macro Interp4 3
; unpack c2
- mov eax, %2
- mov edx, eax
+ mov edx, %2
shl edx, 16
- or edx, eax
+ or edx, %2
and edx, [_hqx_green_redBlue_Mask]
; unpack c3
- mov eax, %3
- mov ecx, eax
+ mov ecx, %3
shl ecx, 16
- or ecx, eax
+ or ecx, %3
and ecx, [_hqx_green_redBlue_Mask]
; sum c2 and c3
@@ -230,8 +228,7 @@ SECTION .text
shl edx, 3
sub edx, ecx
- ; Restore eax, unpack it and multiply by 2
- mov eax, [w5]
+ ; unpack eax and multiply by 2
mov ecx, eax
shl ecx, 16
or ecx, eax