summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/render/software/Agg2D.pas11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/corelib/render/software/Agg2D.pas b/src/corelib/render/software/Agg2D.pas
index 6a587b7e..9a153aa8 100644
--- a/src/corelib/render/software/Agg2D.pas
+++ b/src/corelib/render/software/Agg2D.pas
@@ -626,6 +626,8 @@ type
function Agg2DUsesWin32TrueType : boolean;
function BitmapAlphaTransparency(bitmap : TfpgImage; alpha : byte ) : boolean;
+
+ function fpgColor2AggColor(c: TfpgColor): TAggColor;
IMPLEMENTATION
@@ -974,6 +976,15 @@ begin
{$ENDIF }
end;
+function fpgColor2AggColor(c: TfpgColor): TAggColor;
+var
+ t: TRGBTriple;
+ c1: TfpgColor;
+begin
+ t := fpgColorToRGBTriple(c);
+ Result.Construct(t.Red, t.Green, t.Blue, t.Alpha);
+end;
+
function ColorDepthToPixelFormat(const AColorDepth: integer): TPixelFormat;
begin
case AColorDepth of