mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 09:13:08 +03:00
Clear bitmap before redrawing tree
svn path=/trunk/netsurf/; revision=10893
This commit is contained in:
parent
c5b9e45960
commit
dd067c9fba
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user