mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 14:29:29 +02:00
Merge branch 'AllowCLNoneTransparency' into 'main'
Allow transparency drawing in TLCLCOmmonCallback.DrawBackground for Color == clNone See merge request freepascal.org/lazarus/lazarus!349
This commit is contained in:
commit
a39246b862
@ -1477,7 +1477,7 @@ var
|
||||
begin
|
||||
// Implement Color property
|
||||
lTarget := TWinControl(GetTarget());
|
||||
if (lTarget.Color <> clDefault) and (lTarget.Color <> clBtnFace) then
|
||||
if (lTarget.Color <> clDefault) and (lTarget.Color <> clBtnFace) and (lTarget.Color <> clNone) then
|
||||
begin
|
||||
ColorToNSColor(ColorToRGB(lTarget.Color)).set_();
|
||||
// NSRectFill() always requires the coordinate system of the lower left corner
|
||||
|
Loading…
Reference in New Issue
Block a user