From 88d248839e06559a24c786b61d64a4d537a2cf46 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Tue, 31 Jul 2012 16:35:29 +0100 Subject: jpg: fixes compiler hint about usage of deprecated TFPColor type. --- src/corelib/fpg_imgfmt_jpg.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2