# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1319523216 0 # Node ID 2d2b945ee0bf262cb82981ca4dd3360269a5eaba # Parent 3df86772b6256b24eabd46fd5f5aa9d9bdf67310 Added a polygon to the test code to make sure that works on all platforms. diff -r 3df86772b625 -r 2d2b945ee0bf dwtest.c --- a/dwtest.c Mon Oct 24 08:30:53 2011 +0000 +++ b/dwtest.c Tue Oct 25 06:13:36 2011 +0000 @@ -352,7 +352,9 @@ int width = (int)DW_PIXMAP_WIDTH(hpm), height = (int)DW_PIXMAP_HEIGHT(hpm); HPIXMAP pixmap = direct ? NULL : hpm; HWND window = direct ? textbox2 : 0; - + int x[7] = { 20, 180, 180, 230, 180, 180, 20 }; + int y[7] = { 50, 50, 20, 70, 120, 90, 90 }; + image_x = (int)dw_spinbutton_get_pos(imagexspin); image_y = (int)dw_spinbutton_get_pos(imageyspin); image_stretch = dw_checkbox_get(imagestretchcheck); @@ -364,6 +366,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_BLUE); + dw_draw_polygon(window, pixmap, TRUE, 7, x, y); if(image) { if(image_stretch)