summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-07-31 16:35:29 +0100
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-07-31 16:35:29 +0100
commit88d248839e06559a24c786b61d64a4d537a2cf46 (patch)
tree56ab3a9e7e386b8897235ad2502e44f0813e9402 /src
parent38eb3570f1744ed1adcbcbb82f56b57b0a90ab97 (diff)
downloadfpGUI-88d248839e06559a24c786b61d64a4d537a2cf46.tar.xz
jpg: fixes compiler hint about usage of deprecated TFPColor type.
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;