mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 04:59:26 +02:00
* aspect ratio adjustment added to Arc and PieSlice
git-svn-id: trunk@15963 -
This commit is contained in:
parent
07519e8839
commit
948234c558
@ -1356,7 +1356,7 @@ end;
|
||||
{ OldWriteMode := CurrentWriteMode;
|
||||
if (LineInfo.Thickness = NormWidth) then
|
||||
CurrentWriteMode := NormalPut;}
|
||||
InternalEllipse(X,Y,Radius,Radius,StAngle,Endangle,{$ifdef fpc}@{$endif}DummyPatternLine);
|
||||
InternalEllipse(X,Y,Radius,(longint(Radius)*XAspect) div YAspect,StAngle,Endangle,{$ifdef fpc}@{$endif}DummyPatternLine);
|
||||
{ CurrentWriteMode := OldWriteMode;}
|
||||
end;
|
||||
|
||||
@ -1944,7 +1944,7 @@ end;
|
||||
|
||||
procedure PieSlice(X,Y,stangle,endAngle:smallint;Radius: Word);
|
||||
begin
|
||||
Sector(x,y,stangle,endangle,radius,radius);
|
||||
Sector(x,y,stangle,endangle,radius,(longint(Radius)*XAspect) div YAspect);
|
||||
end;
|
||||
|
||||
{$i fills.inc}
|
||||
|
Loading…
Reference in New Issue
Block a user