mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 06:38:06 +02:00
cocoa: using DeviceRGB for the inverted color. Fixes compilation for the older fpc
git-svn-id: trunk@64366 -
This commit is contained in:
parent
a67fb97c5e
commit
8f421d4a57
@ -765,7 +765,7 @@ begin
|
||||
r := $FF xor byte(Round(clr.redComponent * 255));
|
||||
g := $FF xor byte(Round(clr.greenComponent * 255));
|
||||
b := $FF xor byte(Round(clr.blueComponent * 255));
|
||||
Result := NSColor.colorWithRed_green_blue_alpha(r / 255, g / 255, b / 255, 1);
|
||||
Result := NSColor.colorWithDeviceRed_green_blue_alpha(r / 255, g / 255, b / 255, 1);
|
||||
end;
|
||||
|
||||
function TCocoaFieldEditor.becomeFirstResponder: LCLObjCBoolean;
|
||||
|
Loading…
Reference in New Issue
Block a user