Clear bitmap before redrawing tree

svn path=/trunk/netsurf/; revision=10893
This commit is contained in:
Chris Young 2010-10-17 13:15:27 +00:00
parent c5b9e45960
commit dd067c9fba

View File

@ -199,6 +199,9 @@ void tree_icon_name_from_content_type(char *buffer, content_type type)
#endif
#ifdef WITH_NS_SVG
case CONTENT_SVG:
#endif
#ifdef WITH_WEBP
case CONTENT_WEBP:
#endif
default:
ami_get_theme_filename(buffer,"theme_list_content",true);
@ -1046,6 +1049,8 @@ void ami_tree_redraw_request(int x, int y, int width, int height, void *data)
if(x - pos_x + width > bbox->Width) width = bbox->Width - (x - pos_x);
if(y - pos_y + height > bbox->Height) height = bbox->Height - (y - pos_y);
ami_clg(0xffffffff);
tree_draw(twin->tree, -pos_x, -pos_y, x, y, width, height);
BltBitMapRastPort(twin->globals.bm, x - pos_x, y - pos_y, twin->win->RPort,