From 8f421d4a57cdd3f582ce5eae7f95bc44401d5b5b Mon Sep 17 00:00:00 2001 From: dmitry Date: Sat, 9 Jan 2021 18:26:51 +0000 Subject: [PATCH] cocoa: using DeviceRGB for the inverted color. Fixes compilation for the older fpc git-svn-id: trunk@64366 - --- lcl/interfaces/cocoa/cocoatextedits.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcl/interfaces/cocoa/cocoatextedits.pas b/lcl/interfaces/cocoa/cocoatextedits.pas index 1c282749f8..66c70e2398 100644 --- a/lcl/interfaces/cocoa/cocoatextedits.pas +++ b/lcl/interfaces/cocoa/cocoatextedits.pas @@ -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;