summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-03-15 18:34:20 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-03-15 18:34:20 +0200
commit8e458bc5c9d0639e50dd9dad7e6784b98f977f19 (patch)
treee9f94034fe8ebd1768eaae70c0b553e8966ba899
parent71b167bdbc89bf57f2bbba324fb70150371a9c27 (diff)
downloadfpGUI-8e458bc5c9d0639e50dd9dad7e6784b98f977f19.tar.xz
wuline demo: removed all redundant BeginDraw..EndDraw calls.
-rw-r--r--examples/gui/wulinetest/wuline_test.lpr10
1 files changed, 2 insertions, 8 deletions
diff --git a/examples/gui/wulinetest/wuline_test.lpr b/examples/gui/wulinetest/wuline_test.lpr
index 57632036..a726d843 100644
--- a/examples/gui/wulinetest/wuline_test.lpr
+++ b/examples/gui/wulinetest/wuline_test.lpr
@@ -45,7 +45,6 @@ end;
procedure TMainForm.HandlePaint;
begin
- Canvas.BeginDraw;
inherited HandlePaint;
if rbSpokes.Checked then
@@ -54,8 +53,6 @@ begin
DrawLines
else if rbSpiral.Checked then
DrawSpiral;
-
- Canvas.EndDraw;
end;
procedure TMainForm.btnQuitClicked(Sender: TObject);
@@ -69,8 +66,6 @@ var
x1, y1, x2, y2: integer;
theta: double;
begin
- Canvas.BeginDraw;
-
theta := phase;
while theta < (360+phase) do
begin
@@ -85,7 +80,6 @@ begin
theta := theta + 10;
end;
- Canvas.EndDraw;
end;
procedure TMainForm.DrawSpiral;
@@ -96,7 +90,7 @@ begin
X1 := 300;
Y1 := 100;
Theta := 0;
- Canvas.BeginDraw;
+
while Theta < 15 * 3.1415926535 do
begin
X2 := trunc(X1 + Cos(Theta) * Theta);
@@ -106,7 +100,7 @@ begin
X1 := X2;
Y1 := Y2;
end;
- Canvas.EndDraw;
+
end;
procedure TMainForm.DrawLines;