mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 15:19:19 +02:00
Cocoa: Allow transparency drawing in TLCLCOmmonCallback.DrawBackground for Color == clNone
This commit is contained in:
parent
4433fff1ea
commit
e8e91a9bd9
@ -1477,7 +1477,7 @@ var
|
|||||||
begin
|
begin
|
||||||
// Implement Color property
|
// Implement Color property
|
||||||
lTarget := TWinControl(GetTarget());
|
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
|
begin
|
||||||
ColorToNSColor(ColorToRGB(lTarget.Color)).set_();
|
ColorToNSColor(ColorToRGB(lTarget.Color)).set_();
|
||||||
// NSRectFill() always requires the coordinate system of the lower left corner
|
// NSRectFill() always requires the coordinate system of the lower left corner
|
||||||
|
Loading…
Reference in New Issue
Block a user