changeset 1280:70efdb4e0ce9

Draw a rectangle behind the circle to make sure it fits inside.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 31 Oct 2011 00:30:34 +0000
parents ee9a233f1b42
children fe92a6f6d3e7
files dwtest.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dwtest.c	Sun Oct 30 23:58:19 2011 +0000
+++ b/dwtest.c	Mon Oct 31 00:30:34 2011 +0000
@@ -368,6 +368,8 @@
     dw_draw_text(window, pixmap, 10, 10, "This should be aligned with the edges.");
     dw_color_foreground_set(DW_CLR_BLUE);
     dw_draw_polygon(window, pixmap, TRUE, 7, x, y);
+    dw_color_foreground_set(DW_CLR_BLACK);
+    dw_draw_rect(window, pixmap, DW_DRAW_FILL, 80, 80, 40, 40);
     dw_color_foreground_set(DW_CLR_CYAN);
     /* Bottom right corner */
     dw_draw_arc(window, pixmap, 0, width - 30, height - 30, width - 10, height - 30, width - 30, height - 10);