summaryrefslogtreecommitdiff
path: root/prototypes/fpgui2
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-04-29 11:01:02 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-04-29 11:01:02 +0200
commit168a95599e20aa0bfa2277845d828d504d8a6add (patch)
treede1ad1d5f3e26f56fc8833bbdc1ad6ddbb5750c5 /prototypes/fpgui2
parent19b8624298f5ef7d355d8551427945a750d32c64 (diff)
downloadfpGUI-168a95599e20aa0bfa2277845d828d504d8a6add.tar.xz
Replaced all TRGBTriple usage in non-fpGUI library code.
Replaced TRGBTriple with TFPColor.
Diffstat (limited to 'prototypes/fpgui2')
-rw-r--r--prototypes/fpgui2/tests/frm_threedee.pas12
1 files changed, 6 insertions, 6 deletions
diff --git a/prototypes/fpgui2/tests/frm_threedee.pas b/prototypes/fpgui2/tests/frm_threedee.pas
index 836de485..5f6548ed 100644
--- a/prototypes/fpgui2/tests/frm_threedee.pas
+++ b/prototypes/fpgui2/tests/frm_threedee.pas
@@ -119,18 +119,18 @@ Const
procedure FillRectGradient(Canvas: TfpgCanvas; X, Y, W, H: TfpgCoord;
Strip: Integer; Astart, Astop: TfpgColor);
var
- RGBStart: TRGBTriple;
- RGBStop: TRGBTriple;
+ RGBStart: TFPColor;
+ RGBStop: TFPColor;
RDiff, GDiff, BDiff: Integer;
count: Integer;
i: Integer;
- newcolor: TRGBTriple;
+ newcolor: TFPColor;
Hx, Hy: TfpgCoord; // Coordinates for Horizontal Lines
Vx, Vy: TfpgCoord; // Coordinates for Vertical Lines
avgcolor: TfpgColor;
begin
- RGBStart := fpgColorToRGBTriple(fpgColorToRGB(AStart));
- RGBStop := fpgColorToRGBTriple(fpgColorToRGB(AStop));
+ RGBStart := fpgColorToFPColor(fpgColorToRGB(AStart));
+ RGBStop := fpgColorToFPColor(fpgColorToRGB(AStop));
count := Strip;
Hx := X;
@@ -151,7 +151,7 @@ begin
newcolor.Blue := RGBStart.Blue + (i * BDiff) div count;
Canvas.SetLineStyle(1, lsSolid);
- Canvas.SetColor(RGBTripleTofpgColor(newcolor));
+ Canvas.SetColor(FPColorTofpgColor(newcolor));
Canvas.DrawLine(Hx, Hy, W+2, Hy); // Horizontal Line
Canvas.DrawLine(Vx, Vy, Vx, H+2); // Vertical Line
// next Horizontal Line: one pixel lower, one pixel shorter on the left