Mercurial > dwindows
diff dwtest.c @ 1613:fd3b7784ab53
Initial commit for GDI+ anti-aliased drawing. Code currently does not work,
but wanted to commit the framework... test code is in GDIPLUS1 #ifdef
Also added dw_draw_line() test to dwtest to allow me to try out this code.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 26 Mar 2012 18:12:52 +0000 |
parents | 71e0a3ad07f7 |
children | 38da4aa23b7c |
line wrap: on
line diff
--- a/dwtest.c Sat Mar 24 15:00:56 2012 +0000 +++ b/dwtest.c Mon Mar 26 18:12:52 2012 +0000 @@ -375,6 +375,8 @@ dw_color_foreground_set(DW_CLR_GREEN); dw_color_background_set(DW_CLR_DARKRED); dw_draw_text(window, pixmap, 10, 10, "This should be aligned with the edges."); + dw_color_foreground_set(DW_CLR_YELLOW); + dw_draw_line(window, pixmap, width - 10, 10, 10, height - 10); dw_color_foreground_set(DW_CLR_BLUE); dw_draw_polygon(window, pixmap, TRUE, 7, x, y); dw_color_foreground_set(DW_CLR_BLACK);