mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 12:49:33 +02:00
* implemented the viewport adjustment in asm instead of pascal in the asm
version of the PutPixel320 routine git-svn-id: trunk@40918 -
This commit is contained in:
parent
6648bacec6
commit
1e0a811aad
@ -2248,8 +2248,6 @@ End;
|
||||
if (Y < 0) or (Y > ViewHeight) then
|
||||
exit;
|
||||
end;
|
||||
X:= X + StartXViewPort;
|
||||
Y:= Y + StartYViewPort;
|
||||
asm
|
||||
{$ifdef FPC_MM_HUGE}
|
||||
mov ax, SEG SegA000
|
||||
@ -2260,6 +2258,8 @@ End;
|
||||
{$endif FPC_MM_HUGE}
|
||||
mov ax, [Y]
|
||||
mov di, [X]
|
||||
add ax, [StartYViewPort]
|
||||
add di, [StartXViewPort]
|
||||
xchg ah, al { The value of Y must be in AH }
|
||||
add di, ax
|
||||
shr ax, 1
|
||||
|
Loading…
Reference in New Issue
Block a user