mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 05:20:27 +02:00
lcl: don't deflate rectangle after Frame3d drawing in TPanel.Paint code since Frame3d performs that deflation itself (issue #0013776)
git-svn-id: trunk@20104 -
This commit is contained in:
parent
f8c5dc7b12
commit
89bfcf7006
@ -95,17 +95,15 @@ var
|
||||
begin
|
||||
ARect := GetClientRect;
|
||||
if BevelOuter <> bvNone then
|
||||
begin
|
||||
Canvas.Frame3d(ARect, BevelWidth, BevelOuter);
|
||||
InflateRect(ARect, -1, -1);
|
||||
end;
|
||||
|
||||
if BevelInner <> bvNone then
|
||||
begin
|
||||
if BorderWidth > 0 then InflateRect(ARect, -BorderWidth, -BorderWidth);
|
||||
if BorderWidth > 0 then
|
||||
InflateRect(ARect, -BorderWidth, -BorderWidth);
|
||||
Canvas.Frame3d(ARect, BevelWidth, BevelInner);
|
||||
InflateRect(ARect, -1, -1);
|
||||
end;
|
||||
|
||||
if Caption <> '' then
|
||||
begin
|
||||
TS := Canvas.TextStyle;
|
||||
|
Loading…
Reference in New Issue
Block a user