mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:29:27 +02:00
* Add ColorToRGB class var to TColorRec
This commit is contained in:
parent
df67c18f7d
commit
f253ca856f
@ -32,6 +32,7 @@ Type
|
||||
TImageIndex = type Integer;
|
||||
|
||||
TColorRec = record
|
||||
class var ColorToRGB: function (Color: TColor): Longint;
|
||||
class operator := (AColor : TColor): TColorRec; inline;
|
||||
class operator := (AColor : TColorRec): TColor; inline;
|
||||
const
|
||||
@ -982,4 +983,11 @@ begin
|
||||
CR.B:=CC(B);
|
||||
end;
|
||||
|
||||
function DefaultColorToRGB(Color: TColor): Longint;
|
||||
begin
|
||||
Result:=Color;
|
||||
end;
|
||||
|
||||
initialization
|
||||
TColorRec.ColorToRGB:=@DefaultColorToRGB;
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user