Mercurial > dwindows
comparison dwtest.c @ 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 | 24f1dc19601d |
children | 4f0f816f1e76 |
comparison
equal
deleted
inserted
replaced
1279:ee9a233f1b42 | 1280:70efdb4e0ce9 |
---|---|
366 dw_color_foreground_set(DW_CLR_GREEN); | 366 dw_color_foreground_set(DW_CLR_GREEN); |
367 dw_color_background_set(DW_CLR_DARKRED); | 367 dw_color_background_set(DW_CLR_DARKRED); |
368 dw_draw_text(window, pixmap, 10, 10, "This should be aligned with the edges."); | 368 dw_draw_text(window, pixmap, 10, 10, "This should be aligned with the edges."); |
369 dw_color_foreground_set(DW_CLR_BLUE); | 369 dw_color_foreground_set(DW_CLR_BLUE); |
370 dw_draw_polygon(window, pixmap, TRUE, 7, x, y); | 370 dw_draw_polygon(window, pixmap, TRUE, 7, x, y); |
371 dw_color_foreground_set(DW_CLR_BLACK); | |
372 dw_draw_rect(window, pixmap, DW_DRAW_FILL, 80, 80, 40, 40); | |
371 dw_color_foreground_set(DW_CLR_CYAN); | 373 dw_color_foreground_set(DW_CLR_CYAN); |
372 /* Bottom right corner */ | 374 /* Bottom right corner */ |
373 dw_draw_arc(window, pixmap, 0, width - 30, height - 30, width - 10, height - 30, width - 30, height - 10); | 375 dw_draw_arc(window, pixmap, 0, width - 30, height - 30, width - 10, height - 30, width - 30, height - 10); |
374 /* Top right corner */ | 376 /* Top right corner */ |
375 dw_draw_arc(window, pixmap, 0, width - 30, 30, width - 30, 10, width - 10, 30); | 377 dw_draw_arc(window, pixmap, 0, width - 30, 30, width - 30, 10, width - 10, 30); |