From dd067c9fba4d783f5515b7df19aae418903257a4 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 17 Oct 2010 13:15:27 +0000 Subject: Clear bitmap before redrawing tree svn path=/trunk/netsurf/; revision=10893 --- amiga/tree.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/amiga/tree.c b/amiga/tree.c index f01805314..07ad893fd 100755 --- a/amiga/tree.c +++ b/amiga/tree.c @@ -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, -- cgit v1.2.3