mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: macOS does not support XOR; when eliminating the selection in Highlight, redrawing is used instead of XOR
This commit is contained in:
parent
961eeb5e24
commit
8c3e18eee8
1 changed files with 5 additions and 0 deletions
|
|
@ -1355,8 +1355,13 @@ begin
|
|||
with Image.Picture.Bitmap.Canvas do
|
||||
begin
|
||||
if NOT getUndoRect(0).IsEmpty then begin
|
||||
{$IFnDEF DARWIN}
|
||||
DrawFocusRect( getUndoRect(0) );
|
||||
DrawFocusRect( getUndoRect(-10) );
|
||||
{$ELSE}
|
||||
// XOR not supported on macOS, redraw instead
|
||||
CopyRect( getUndoRect(0), tmp_all.canvas, getUndoRect(0) );
|
||||
{$ENDIF}
|
||||
end;
|
||||
setUndoRect( StartX, StartY, EndX, EndY );
|
||||
DrawFocusRect( getUndoRect(0) );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue