mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: simplify drawing Rectangle/Ellipse
This commit is contained in:
parent
ab77a7183f
commit
acf007f698
1 changed files with 3 additions and 3 deletions
|
|
@ -1380,14 +1380,14 @@ begin
|
|||
vptRectangle, vptEllipse:
|
||||
begin
|
||||
CopyRect( getUndoRect(tmp), tmp_all.canvas, getUndoRect(tmp) );
|
||||
setUndoRect( StartX, StartY, X, Y );
|
||||
case TViewerPaintTool(btnPenMode.Tag) of
|
||||
vptRectangle: Rectangle(Rect(StartX,StartY,X,Y));
|
||||
vptEllipse:Ellipse(StartX,StartY,X,Y);
|
||||
vptRectangle: Rectangle( getUndoRect(0) );
|
||||
vptEllipse:Ellipse( getUndoRect(0) );
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
setUndoRect( StartX, StartY, X, Y );
|
||||
end;
|
||||
end;
|
||||
if not (btnHightlight.Down) and not (btnPaint.Down) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue