diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2014-06-23 21:50:48 +0100 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2014-06-23 21:50:48 +0100 |
commit | 3b299881fb6656c12780849486682e5875348494 (patch) | |
tree | fc215ce5d4eee330b7cee478b92c99d68187f1a3 /examples/gui/colorwheel | |
parent | 3fee751e6fcdd119a0e0129bc0d9745199a75191 (diff) | |
download | fpGUI-3b299881fb6656c12780849486682e5875348494.tar.xz |
Demos: fixed compiler warnings.
* fixed deprecated functions
* fixed unused variables
* fixed unused units
* fixed not initialised variables
* fixed nested comments
Diffstat (limited to 'examples/gui/colorwheel')
-rw-r--r-- | examples/gui/colorwheel/frm_main.pas | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/gui/colorwheel/frm_main.pas b/examples/gui/colorwheel/frm_main.pas index 63518360..3633b740 100644 --- a/examples/gui/colorwheel/frm_main.pas +++ b/examples/gui/colorwheel/frm_main.pas @@ -67,14 +67,14 @@ end; procedure TMainForm.RGBChanged(Sender: TObject); var - rgb: TFPColor; + rgb: TRGBTriple; c: TfpgColor; begin FViaRGB := True; // revent recursive updates rgb.Red := StrToInt(edR.Text); rgb.Green := StrToInt(edG.Text); rgb.Blue := StrToInt(edB.Text); - c := FPColorTofpgColor(rgb); + c := RGBTripleTofpgColor(rgb); ColorWheel1.SetSelectedColor(c); // This will trigger ColorWheel and ValueBar OnChange event FViaRGB := False; end; @@ -122,11 +122,11 @@ end; procedure TMainForm.UpdateRGBComponents; var - rgb: TFPColor; + rgb: TRGBTriple; c: TfpgColor; begin c := ValueBar1.SelectedColor; - rgb := fpgColorToFPColor(c); + rgb := fpgColorToRGBTriple(c); edR.Text := IntToStr(rgb.Red); edG.Text := IntToStr(rgb.Green); edB.Text := IntToStr(rgb.Blue); |