mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: the issue with incorrect direction when drawing rectangles/ellipses in ViewerForm
This commit is contained in:
parent
9088062dec
commit
e7d8c81a34
1 changed files with 3 additions and 3 deletions
|
|
@ -1375,15 +1375,15 @@ begin
|
|||
vptPen: LineTo (x,y);
|
||||
vptRectangle, vptEllipse:
|
||||
begin
|
||||
if (startX>x) and (startY<y) then
|
||||
if (UndoSX>UndoEX) and (UndoSY<UndoEY) then
|
||||
CopyRect( Rect(UndoEX-tmp,UndoSY-tmp,UndoSX+tmp,UndoEY+tmp),
|
||||
tmp_all.canvas,
|
||||
Rect(UndoEX-tmp,UndoSY-tmp,UndoSX+tmp,UndoEY+tmp) )
|
||||
else if (startX<x) and (startY>y) then
|
||||
else if (UndoSX<UndoEX) and (UndoSY>UndoEY) then
|
||||
CopyRect( Rect(UndoSX-tmp,UndoEY-tmp,UndoEX+tmp,UndoSY+tmp),
|
||||
tmp_all.canvas,
|
||||
Rect(UndoSX-tmp,UndoEY-tmp,UndoEX+tmp,UndoSY+tmp) )
|
||||
else if (startX>x) and (startY>y) then
|
||||
else if (UndoSX>UndoEX) and (UndoSY>UndoEY) then
|
||||
CopyRect( Rect(UndoEX-tmp,UndoEY-tmp,UndoSX+tmp,UndoSY+tmp),
|
||||
tmp_all.canvas,
|
||||
Rect(UndoEX-tmp,UndoEY-tmp,UndoSX+tmp,UndoSY+tmp) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue