# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1320021034 0 # Node ID 70efdb4e0ce9b446923131c79b743b3f38335ec9 # Parent ee9a233f1b427835d2157ec355206c6d73c40f3c Draw a rectangle behind the circle to make sure it fits inside. diff -r ee9a233f1b42 -r 70efdb4e0ce9 dwtest.c --- 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);