Mercurial > dwindows
diff dwtest.c @ 1269:9e477efbacca
Added DW_DRAW_DEFAULT, DW_DRAW_FILL and DW_DRAW_FULL drawing flags.
Adde some more arc segments and full circle commands to test program.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 30 Oct 2011 00:40:22 +0000 |
parents | 83b0ed8c8377 |
children | 24f1dc19601d |
line wrap: on
line diff
--- a/dwtest.c Tue Oct 25 12:33:09 2011 +0000 +++ b/dwtest.c Sun Oct 30 00:40:22 2011 +0000 @@ -369,7 +369,14 @@ dw_color_foreground_set(DW_CLR_BLUE); dw_draw_polygon(window, pixmap, TRUE, 7, x, y); 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); + /* Top right corner */ + dw_draw_arc(window, pixmap, 0, width - 30, 30, width - 30, 10, width - 10, 30); + /* Bottom left corner */ + dw_draw_arc(window, pixmap, 0, 30, height - 30, 30, height - 10, 10, height - 30); + /* Full circle in the left top area */ + dw_draw_arc(window, pixmap, 0, 100, 100, 80, 80, 120, 120); if(image) { if(image_stretch)