Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
1612:712c270f16d8 | 1613:fd3b7784ab53 |
---|---|
373 dw_color_foreground_set(DW_CLR_DARKPINK); | 373 dw_color_foreground_set(DW_CLR_DARKPINK); |
374 dw_draw_rect(window, pixmap, TRUE, 10, 10, width - 20, height - 20); | 374 dw_draw_rect(window, pixmap, TRUE, 10, 10, width - 20, height - 20); |
375 dw_color_foreground_set(DW_CLR_GREEN); | 375 dw_color_foreground_set(DW_CLR_GREEN); |
376 dw_color_background_set(DW_CLR_DARKRED); | 376 dw_color_background_set(DW_CLR_DARKRED); |
377 dw_draw_text(window, pixmap, 10, 10, "This should be aligned with the edges."); | 377 dw_draw_text(window, pixmap, 10, 10, "This should be aligned with the edges."); |
378 dw_color_foreground_set(DW_CLR_YELLOW); | |
379 dw_draw_line(window, pixmap, width - 10, 10, 10, height - 10); | |
378 dw_color_foreground_set(DW_CLR_BLUE); | 380 dw_color_foreground_set(DW_CLR_BLUE); |
379 dw_draw_polygon(window, pixmap, TRUE, 7, x, y); | 381 dw_draw_polygon(window, pixmap, TRUE, 7, x, y); |
380 dw_color_foreground_set(DW_CLR_BLACK); | 382 dw_color_foreground_set(DW_CLR_BLACK); |
381 dw_draw_rect(window, pixmap, DW_DRAW_FILL, 80, 80, 80, 40); | 383 dw_draw_rect(window, pixmap, DW_DRAW_FILL, 80, 80, 80, 40); |
382 dw_color_foreground_set(DW_CLR_CYAN); | 384 dw_color_foreground_set(DW_CLR_CYAN); |