cocoa: using DeviceRGB for the inverted color. Fixes compilation for the older fpc

git-svn-id: trunk@64366 -
This commit is contained in:
dmitry 2021-01-09 18:26:51 +00:00
parent a67fb97c5e
commit 8f421d4a57

View File

@ -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;