mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 17:40:40 +02:00
cocoa: added explicit typecast of TColor to ColorRef to prevent range check error
git-svn-id: trunk@46087 -
This commit is contained in:
parent
5da45bf864
commit
f02f832da7
@ -1574,7 +1574,7 @@ begin
|
|||||||
cg := CGContext;
|
cg := CGContext;
|
||||||
if not Assigned(cg) then Exit;
|
if not Assigned(cg) then Exit;
|
||||||
|
|
||||||
fillbrush:=TCocoaBrush.Create(ColorToNSColor(AColor));
|
fillbrush:=TCocoaBrush.Create(ColorToNSColor(ColorRef(AColor)));
|
||||||
fillbrush.Apply(self);
|
fillbrush.Apply(self);
|
||||||
|
|
||||||
r.origin.x:=x;
|
r.origin.x:=x;
|
||||||
|
Loading…
Reference in New Issue
Block a user