# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1323991850 0 # Node ID 09323eb9dc32085e7dba5c537f26f1f8d4c710c4 # Parent da9cd5da3440a92eb568a2267e68eba9267da9b6 Clear the side pixmap on configure so there won't sometimes be garbage there. diff -r da9cd5da3440 -r 09323eb9dc32 dwtest.c --- a/dwtest.c Thu Dec 15 23:14:28 2011 +0000 +++ b/dwtest.c Thu Dec 15 23:30:50 2011 +0000 @@ -391,9 +391,6 @@ { text_expose( textbox2, NULL, NULL); } - /* Make sure the side area is cleared too */ - dw_color_foreground_set(DW_CLR_BLACK); - dw_draw_rect(textbox1, 0, DW_DRAW_FILL, 0, 0, DW_PIXMAP_WIDTH(text1pm), DW_PIXMAP_HEIGHT(text1pm)); } void update_render(void) @@ -706,7 +703,11 @@ text1pm = dw_pixmap_new(textbox1, (unsigned long)(font_width*(width1)), (unsigned long)height, (int)depth); text2pm = dw_pixmap_new(textbox2, (unsigned long)width, (unsigned long)height, (int)depth); - /* Destroy the old pixmaps */ + /* Make sure the side area is cleared */ + dw_color_foreground_set(DW_CLR_WHITE); + dw_draw_rect(0, text1pm, DW_DRAW_FILL, 0, 0, DW_PIXMAP_WIDTH(text1pm), DW_PIXMAP_HEIGHT(text1pm)); + + /* Destroy the old pixmaps */ dw_pixmap_destroy(old1); dw_pixmap_destroy(old2);