From a072c49b0ee57250f5e418434d8d5a0b9e74467f Mon Sep 17 00:00:00 2001
From: Josh Holtrop
-FIXME: 2D coordinates +When 2D coordinates are used (with mouse cursor positions and +overlay drawing routines), the origin is in the lower-left corner of +the screen. +The X axis increases positively toward the right edge of the screen. +The Y axis increases positively toward the top of the screen. +The upper-right pixel on the screen has coordinates (width-1, height-1).
diff --git a/tests/managed_objects.lua b/tests/managed_objects.lua index 1a2991b..4cbec08 100644 --- a/tests/managed_objects.lua +++ b/tests/managed_objects.lua @@ -80,4 +80,9 @@ function update_overlay_event(width, height) end ag.fillArc(1, 1, 0, 50, 50, 30, 30, 330) ag.fillCircle(1, 0, 1, width - 50, height - 50, 40) + ag.drawRect(1, 0.5, 0, width, height, width/2, height/2) + ag.drawPoint(1, 0, 1, 0, 0, 0) + ag.drawPoint(1, 0, 1, 0, width-1, height-1) + ag.drawPoint(1, 0, 1, 1, -1, -1) + ag.drawPoint(1, 0, 1, 1, width, height) end