summaryrefslogtreecommitdiff
path: root/examples/corelib/canvastest
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-08-07 15:24:30 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-08-07 15:24:30 +0000
commitbb4616fa1af67de6012a714fe7158b61fa1b0c1a (patch)
tree24ab2f46e3bd8afe2af610ffd080eb416b0888ce /examples/corelib/canvastest
parent27b4260ca539231514aa053706c060eff1568695 (diff)
downloadfpGUI-bb4616fa1af67de6012a714fe7158b61fa1b0c1a.tar.xz
* Changed the parameters of DrawRectangle, FillRectangle to rather use Width and Height.
* DrawLine and DrawRectangle now use the same coordinate system as Windows does. * I need to fixed corrupted painting in widgets due to this.
Diffstat (limited to 'examples/corelib/canvastest')
-rw-r--r--examples/corelib/canvastest/fpgcanvas.lpr11
1 files changed, 9 insertions, 2 deletions
diff --git a/examples/corelib/canvastest/fpgcanvas.lpr b/examples/corelib/canvastest/fpgcanvas.lpr
index 1ed2c1c0..54ef8bc7 100644
--- a/examples/corelib/canvastest/fpgcanvas.lpr
+++ b/examples/corelib/canvastest/fpgcanvas.lpr
@@ -44,6 +44,13 @@ begin
// Testing Rectangles
Canvas.SetColor(clBlack);
+ r.Top := 0;
+ r.Left := 0;
+ r.Right := 1;
+ r.Bottom := 1;
+ Canvas.DrawRectangle(r);
+
+ Canvas.SetColor(clBlack);
r.Top := 5;
r.Left := 60;
r.Right := r.Left + 49;
@@ -161,11 +168,11 @@ begin
// Arc drawing tests
Canvas.SetColor(clBlack);
- Canvas.DrawRectangle(5, 235, 55, 285);
+ Canvas.DrawRectangle(5, 235, 50, 50);
Canvas.SetColor(clRed);
Canvas.DrawArc(5, 235, 50, 50, 0, 270); // should overlap rectangle pixels
Canvas.SetColor(clBlack);
- Canvas.DrawRectangle(5, 290, 55, 340);
+ Canvas.DrawRectangle(5, 290, 50, 50);
Canvas.SetColor(clRed);
Canvas.FillArc(5, 290, 50, 50, 0, 270); // should overlap rectangle pixels