# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1304314296 0 # Node ID 5320a168cc0d8cdc96eba89a1048c4c986a13ebe # Parent beed3e7f9d4b4dd8d19a12195a40aa5ad39d3673 diff -r beed3e7f9d4b -r 5320a168cc0d dwtest.c --- a/dwtest.c Mon May 02 04:45:38 2011 +0000 +++ b/dwtest.c Mon May 02 05:31:36 2011 +0000 @@ -882,10 +882,11 @@ text1pm = dw_pixmap_new( textbox1, font_width*width1, font_height*rows, (int)depth ); text2pm = dw_pixmap_new( textbox2, font_width*cols, font_height*rows, (int)depth ); - image = dw_pixmap_new_from_file(textbox2, "mac/folder.png"); + image = dw_pixmap_new_from_file(textbox2, "image/test"); if(!image) - image = dw_pixmap_new_from_file(textbox2, "~/folder.png"); - + image = dw_pixmap_new_from_file(textbox2, "~/test"); + if(image) + dw_pixmap_set_transparent_color(image, DW_CLR_WHITE); dw_messagebox("DWTest", DW_MB_OK|DW_MB_INFORMATION, "Width: %d Height: %d\n", font_width, font_height); dw_draw_rect(0, text1pm, TRUE, 0, 0, font_width*width1, font_height*rows); diff -r beed3e7f9d4b -r 5320a168cc0d image/test.bmp Binary file image/test.bmp has changed diff -r beed3e7f9d4b -r 5320a168cc0d image/test.png Binary file image/test.png has changed