cocoa: shrink focus rect by one pixel from far sides

git-svn-id: trunk@60963 -
This commit is contained in:
dmitry 2019-04-13 22:37:53 +00:00
parent 281ad1a6f0
commit 878e61d619

View File

@ -528,6 +528,7 @@ var
p: Integer;
pn: TCocoaPen;
opn: TCocoaPen;
r: TRect;
begin
ctx := CheckDC(DC);
@ -545,7 +546,10 @@ begin
ctx.Pen:=pn;
ctx.ROP2:=R2_NOTXORPEN;
ctx.Pen.Apply(ctx, true);
ctx.Frame(Rect);
r:=Rect;
dec(r.Right);
dec(r.Bottom);
ctx.Frame(r);
finally
ctx.ROP2:=p;
ctx.Pen:=opn;