mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 20:59:12 +02:00
cocoa: Patch from bug #30778 fix Textout BG color
git-svn-id: trunk@53241 -
This commit is contained in:
parent
4bc99dc88f
commit
8df1188cc7
@ -3027,6 +3027,7 @@ var
|
||||
AROP2: Integer;
|
||||
APatternSpace: CGColorSpaceRef;
|
||||
BaseSpace: CGColorSpaceRef;
|
||||
AColor: CGColorRef;
|
||||
begin
|
||||
if ADC = nil then Exit;
|
||||
|
||||
@ -3061,7 +3062,10 @@ begin
|
||||
CGContextSetFillPattern(ADC.CGcontext, FCGPattern, @RGBA[0]);
|
||||
end
|
||||
else
|
||||
CGContextSetRGBFillColor(ADC.CGContext, RGBA[0], RGBA[1], RGBA[2], RGBA[3]);
|
||||
begin
|
||||
AColor := CGColorCreateGenericRGB(RGBA[0], RGBA[1], RGBA[2], RGBA[3]);
|
||||
CGContextSetFillColorWithColor(ADC.CGContext, AColor);
|
||||
end;
|
||||
end;
|
||||
|
||||
{ TCocoaGDIObject }
|
||||
|
Loading…
Reference in New Issue
Block a user