summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-12-18 10:47:04 +0100
committerErich Eckner <git@eckner.net>2017-12-18 10:47:04 +0100
commitd4da216734136ca7d3ff7265731b69aba1de9702 (patch)
treeb3148827c721329a8d70ee296b4f0f2481bf7a92
parent443ea0741fd7e72c519edfb82aec4c020e60ad16 (diff)
downloadunits-d4da216734136ca7d3ff7265731b69aba1de9702.tar.xz
lowlevelunit.pas: remove Graphics dependencies and tColor2tRgb and tRgb2tColor
-rw-r--r--lowlevelunit.pas16
1 files changed, 1 insertions, 15 deletions
diff --git a/lowlevelunit.pas b/lowlevelunit.pas
index 7ca246a..2bf7d91 100644
--- a/lowlevelunit.pas
+++ b/lowlevelunit.pas
@@ -5,7 +5,7 @@ unit lowlevelunit;
interface
uses
- math, Classes, SysUtils, RegExpr, process, FPimage, Graphics;
+ math, Classes, SysUtils, RegExpr, process, FPimage;
{$IFDEF CPU64}
type
@@ -100,8 +100,6 @@ function andFarben(a,b: tRGB): tRGB; inline;
function wertZuFarbe(x: extended; p: tRGBArray): tRGB;
function tFPColor2tRgb(c: tFPColor): tRGB; inline;
function tRgb2tFPColor(c: tRGB): tFPColor; inline;
-function tColor2tRgb(c: tColor): tRGB; inline;
-function tRgb2tColor(c: tRGB): tColor; inline;
function rgb(r,g,b: byte): tRGB; inline;
function strToTRGB(s: string; out rgb: tRGB): boolean;
procedure myDebugLnThreadLog(s: string);
@@ -703,18 +701,6 @@ begin
result.blue:=c.rgbBlue;
end;
-function tColor2tRgb(c: tColor): tRGB;
-begin
- result.rgbRed:=c and $ff;
- result.rgbGreen:=(c shr 8) and $ff;
- result.rgbBlue:=(c shr 16) and $ff;
-end;
-
-function tRgb2tColor(c: tRGB): tColor;
-begin
- result:=c.rgbRed or (c.rgbGreen shl 8) or (c.rgbBlue shl 16);
-end;
-
function rgb(r,g,b: byte): tRGB;
begin
result.rgbRed:=r;