diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2012-07-31 16:35:29 +0100 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2012-07-31 16:35:29 +0100 |
commit | 88d248839e06559a24c786b61d64a4d537a2cf46 (patch) | |
tree | 56ab3a9e7e386b8897235ad2502e44f0813e9402 /src | |
parent | 38eb3570f1744ed1adcbcbb82f56b57b0a90ab97 (diff) | |
download | fpGUI-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.pas | 6 |
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; |