mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 01:19:37 +02:00
cocoa: shrink focus rect by one pixel from far sides
git-svn-id: trunk@60963 -
This commit is contained in:
parent
281ad1a6f0
commit
878e61d619
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user