mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 06:19:32 +02:00
cocoa: fix compilation
git-svn-id: trunk@34417 -
This commit is contained in:
parent
e88c7b31b7
commit
fa157758f2
@ -2380,7 +2380,7 @@ begin
|
|||||||
if FCGPattern <> nil then
|
if FCGPattern <> nil then
|
||||||
begin
|
begin
|
||||||
CGPatternRelease(FCGPattern);
|
CGPatternRelease(FCGPattern);
|
||||||
FGGPattern := nil;
|
FCGPattern := nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
FreeAndNil(FBitmap);
|
FreeAndNil(FBitmap);
|
||||||
|
@ -1785,9 +1785,9 @@ begin
|
|||||||
Exit;
|
Exit;
|
||||||
Color := ColorToNSColor(PLongArray(lpaRgbValues)^[n]);
|
Color := ColorToNSColor(PLongArray(lpaRgbValues)^[n]);
|
||||||
if (FSysColorBrushes[Element] <> 0) then
|
if (FSysColorBrushes[Element] <> 0) then
|
||||||
FSysColorBrushes[Element].Color := Color
|
TCocoaBrush(FSysColorBrushes[Element]).Color := Color
|
||||||
else
|
else
|
||||||
FSysColorBrushes[Element] := HBrush(TCocoaBrush.Create(SysColorToNSColor(nIndex), True));
|
FSysColorBrushes[Element] := HBrush(TCocoaBrush.Create(Color, True));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Result := True;
|
Result := True;
|
||||||
|
Loading…
Reference in New Issue
Block a user