Mercurial > dwindows
comparison dwtest.c @ 1266:83b0ed8c8377
Fixed on GTK passing angles to cairo in degrees instead of radians.
Also fixed some incorrect values in the test program for the arc.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 25 Oct 2011 12:01:20 +0000 |
parents | 61d0c5f84644 |
children | 9e477efbacca |
comparison
equal
deleted
inserted
replaced
1265:4c980ddfd181 | 1266:83b0ed8c8377 |
---|---|
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_CYAN); | 371 dw_color_foreground_set(DW_CLR_CYAN); |
372 dw_draw_arc(window, pixmap, 0, width - 40, height - 40, width - 40, height - 20, width - 20, height - 40); | 372 dw_draw_arc(window, pixmap, 0, width - 30, height - 30, width - 10, height - 30, width - 30, height - 10); |
373 if(image) | 373 if(image) |
374 { | 374 { |
375 if(image_stretch) | 375 if(image_stretch) |
376 dw_pixmap_stretch_bitblt(window, pixmap, 10, 10, width - 20, height - 20, 0, image, 0, 0, (int)DW_PIXMAP_WIDTH(image), (int)DW_PIXMAP_HEIGHT(image)); | 376 dw_pixmap_stretch_bitblt(window, pixmap, 10, 10, width - 20, height - 20, 0, image, 0, 0, (int)DW_PIXMAP_WIDTH(image), (int)DW_PIXMAP_HEIGHT(image)); |
377 else | 377 else |