mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 10:49:09 +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
|
if (Y < 0) or (Y > ViewHeight) then
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
X:= X + StartXViewPort;
|
|
||||||
Y:= Y + StartYViewPort;
|
|
||||||
asm
|
asm
|
||||||
{$ifdef FPC_MM_HUGE}
|
{$ifdef FPC_MM_HUGE}
|
||||||
mov ax, SEG SegA000
|
mov ax, SEG SegA000
|
||||||
@ -2260,6 +2258,8 @@ End;
|
|||||||
{$endif FPC_MM_HUGE}
|
{$endif FPC_MM_HUGE}
|
||||||
mov ax, [Y]
|
mov ax, [Y]
|
||||||
mov di, [X]
|
mov di, [X]
|
||||||
|
add ax, [StartYViewPort]
|
||||||
|
add di, [StartXViewPort]
|
||||||
xchg ah, al { The value of Y must be in AH }
|
xchg ah, al { The value of Y must be in AH }
|
||||||
add di, ax
|
add di, ax
|
||||||
shr ax, 1
|
shr ax, 1
|
||||||
|
Loading…
Reference in New Issue
Block a user