changeset 1259:2d2b945ee0bf

Added a polygon to the test code to make sure that works on all platforms.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 25 Oct 2011 06:13:36 +0000
parents 3df86772b625
children 3cbd8de0b50b
files dwtest.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)