You've already forked lazarus-ccr
Fixes bug in the rendering of arcs
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1489 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -408,7 +408,7 @@ begin
|
||||
|
||||
// And now write it
|
||||
{$ifdef FPVECTORIALDEBUG}
|
||||
WriteLn(Format('Adding Line from %f,%f to %f,%f', [LineStartX, LineStartY, LineEndX, LineEndY]));
|
||||
// WriteLn(Format('Adding Line from %f,%f to %f,%f', [LineStartX, LineStartY, LineEndX, LineEndY]));
|
||||
{$endif}
|
||||
AData.StartPath(LineStartX, LineStartY);
|
||||
AData.AddLineToPath(LineEndX, LineEndY);
|
||||
@@ -462,6 +462,10 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
{$ifdef FPVECTORIALDEBUG}
|
||||
WriteLn(Format('Adding Arc Center=%f,%f Radius=%f StartAngle=%f EndAngle=%f',
|
||||
[CenterX, CenterY, Radius, StartAngle, EndAngle]));
|
||||
{$endif}
|
||||
AData.AddCircularArc(CenterX, CenterY, CenterZ, Radius, StartAngle, EndAngle);
|
||||
end;
|
||||
|
||||
|
@@ -205,7 +205,7 @@ begin
|
||||
Round(ADestX + AmulX * (CurArc.CenterX + CurArc.Radius)),
|
||||
Round(ADestY + AmulY * (CurArc.CenterY + CurArc.Radius)),
|
||||
Round(16*CurArc.StartAngle),
|
||||
Round(16*CurArc.EndAngle - CurArc.StartAngle)
|
||||
Round(16*(CurArc.EndAngle - CurArc.StartAngle))
|
||||
);
|
||||
{$endif}
|
||||
end;
|
||||
|
Reference in New Issue
Block a user