mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-08 11:38:18 +02:00
LCL: Fix difference between rectangle fill and border when drawn by TLazCanvas.Rectangle().
This commit is contained in:
parent
6e38c6564c
commit
3685317e2b
@ -296,6 +296,8 @@ var
|
|||||||
begin
|
begin
|
||||||
b := Bounds;
|
b := Bounds;
|
||||||
SortRect (b);
|
SortRect (b);
|
||||||
|
dec(b.Right);
|
||||||
|
dec(b.Bottom);
|
||||||
|
|
||||||
// Optimize when filling everything
|
// Optimize when filling everything
|
||||||
if (b.Left = 0) and (b.Top = 0) and (b.Right = Width) and (b.Bottom = Height)
|
if (b.Left = 0) and (b.Top = 0) and (b.Right = Width) and (b.Bottom = Height)
|
||||||
|
Loading…
Reference in New Issue
Block a user