summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/fpg_imgfmt_jpg.pas6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/fpg_imgfmt_jpg.pas b/src/corelib/fpg_imgfmt_jpg.pas
index 1a7fce23..33704643 100644
--- a/src/corelib/fpg_imgfmt_jpg.pas
+++ b/src/corelib/fpg_imgfmt_jpg.pas
@@ -272,7 +272,7 @@ var
inptr: JSAMPLE_PTR;
col : JDIMENSION;
// pad : int;
- NewBGR: TFPColor;
+ NewBGR: TRGBTriple;
PDest: PLongWord;
begin
inptr := JSAMPLE_PTR(dest^.buffer^[0]);
@@ -290,7 +290,7 @@ begin
Inc(inptr);
NewBGR.Blue:=inptr^;
Inc(inptr);
- PDest^ := FPColorTofpgColor(NewBGR);
+ PDest^ := RGBTripleTofpgColor(NewBGR);
inc(PDest);
end;
end
@@ -303,7 +303,7 @@ begin
NewBGR.Blue:=inptr^;
NewBGR.Alpha:=inptr^;
Inc(inptr);
- PDest^ := FPColorTofpgColor(NewBGR);
+ PDest^ := RGBTripleTofpgColor(NewBGR);
inc(PDest);
end;
end;