mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 00:50:49 +02:00
* longint -> Integer would not compile.
This commit is contained in:
parent
23c364f842
commit
417eb205d6
@ -25,14 +25,14 @@ const
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function LineClipped(var x1, y1,x2,y2: longint; xmin, ymin,
|
function LineClipped(var x1, y1,x2,y2: integer; xmin, ymin,
|
||||||
xmax, ymax:longint): boolean;
|
xmax, ymax:integer): boolean;
|
||||||
{********************************************************}
|
{********************************************************}
|
||||||
{ Function LineClipped() }
|
{ Function LineClipped() }
|
||||||
{--------------------------------------------------------}
|
{--------------------------------------------------------}
|
||||||
{ This routine clips the line coordinates to the }
|
{ This routine clips the line coordinates to the }
|
||||||
{ min. and max. values of the window. Returns TRUE if }
|
{ min. and max. values of the window. Returns TRUE if }
|
||||||
{ there was clipping performed on the line. Updated }
|
{ the ENTIRE line was clipped. Updated }
|
||||||
{ clipped line endpoints are also returned. }
|
{ clipped line endpoints are also returned. }
|
||||||
{ This algorithm is the classic Cohen-Sutherland line }
|
{ This algorithm is the classic Cohen-Sutherland line }
|
||||||
{ clipping algorithm. }
|
{ clipping algorithm. }
|
||||||
@ -41,10 +41,10 @@ const
|
|||||||
code1, code2: longint;
|
code1, code2: longint;
|
||||||
done:boolean;
|
done:boolean;
|
||||||
code: longint;
|
code: longint;
|
||||||
newx,newy: longint;
|
newx,newy: integer;
|
||||||
|
|
||||||
|
|
||||||
function outcode(x,y:longint): longint;
|
function outcode(x,y:integer): longint;
|
||||||
{********************************************************}
|
{********************************************************}
|
||||||
{ Function OutCode() }
|
{ Function OutCode() }
|
||||||
{--------------------------------------------------------}
|
{--------------------------------------------------------}
|
||||||
@ -137,7 +137,7 @@ const
|
|||||||
end
|
end
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
LineClipped:=TRUE;
|
LineClipped:=FALSE;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user