mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 19:49:18 +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
|
||||
begin
|
||||
CGPatternRelease(FCGPattern);
|
||||
FGGPattern := nil;
|
||||
FCGPattern := nil;
|
||||
end;
|
||||
|
||||
FreeAndNil(FBitmap);
|
||||
|
@ -1785,9 +1785,9 @@ begin
|
||||
Exit;
|
||||
Color := ColorToNSColor(PLongArray(lpaRgbValues)^[n]);
|
||||
if (FSysColorBrushes[Element] <> 0) then
|
||||
FSysColorBrushes[Element].Color := Color
|
||||
TCocoaBrush(FSysColorBrushes[Element]).Color := Color
|
||||
else
|
||||
FSysColorBrushes[Element] := HBrush(TCocoaBrush.Create(SysColorToNSColor(nIndex), True));
|
||||
FSysColorBrushes[Element] := HBrush(TCocoaBrush.Create(Color, True));
|
||||
end;
|
||||
|
||||
Result := True;
|
||||
|
Loading…
Reference in New Issue
Block a user