Skip to content

Commit

Permalink
optim
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Feb 27, 2020
1 parent f3d86f2 commit bc5810c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions atsynedit/atsynedit_canvasproc.pas
Original file line number Diff line number Diff line change
Expand Up @@ -544,14 +544,12 @@ procedure CanvasTextOut(C: TCanvas; APosX, APosY: integer; AText: atString;
if ListInt[i]>AProps.ControlWidth then
begin
SetLength(AText, i);
break;
Break;
end;

for i:= 0 to High(ListInt) do
if i=0 then
Dx[i]:= ListInt[i]
else
Dx[i]:= ListInt[i]-ListInt[i-1];
Dx[0]:= ListInt[0];
for i:= 1 to High(ListInt) do
Dx[i]:= ListInt[i]-ListInt[i-1];
end;

if AParts=nil then
Expand Down

0 comments on commit bc5810c

Please sign in to comment.