Cocoa: Allow transparency drawing in TLCLCOmmonCallback.DrawBackground for Color == clNone

This commit is contained in:
David Jenkins 2024-10-20 11:02:05 +00:00 committed by rich2014
parent 37be07f5dc
commit bc15061ca5

View File

@ -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