Mercurial > dwindows
changeset 1461:09323eb9dc32
Clear the side pixmap on configure so there won't sometimes be garbage there.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 15 Dec 2011 23:30:50 +0000 |
parents | da9cd5da3440 |
children | 677ca99a8700 |
files | dwtest.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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);