mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 14:59:32 +02:00
* use eax instead of edi in GetPixel320, to avoid saving/restoring edi
git-svn-id: trunk@41118 -
This commit is contained in:
parent
915bc126a5
commit
4d00ac486a
@ -2319,17 +2319,15 @@ End;
|
||||
{# Var X located in register ax
|
||||
# Var Y located in register dx }
|
||||
push ebx
|
||||
push edi
|
||||
movsx edi, ax
|
||||
movsx eax, ax
|
||||
movsx ebx, dx
|
||||
movsx ecx, StartYViewPort
|
||||
movsx edx, StartXViewPort
|
||||
add ebx, ecx
|
||||
add edi, edx
|
||||
add eax, edx
|
||||
shl ebx, 6
|
||||
add edi, ebx
|
||||
movzx eax, byte ptr fs:[edi+ebx*4+$a0000]
|
||||
pop edi
|
||||
add eax, ebx
|
||||
movzx eax, byte ptr fs:[eax+ebx*4+$a0000]
|
||||
pop ebx
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user