mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
Ask GID_ICON to redraw itself before we draw over the top of it. Unfortunately it redraws itself as a grey box, rather than the underlying window's backfill hook.
This commit is contained in:
parent
97aabaf49d
commit
1e02eba193
@ -2821,7 +2821,7 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw,
|
||||
GA_ID, GID_ICON,
|
||||
SPACE_MinWidth, 16,
|
||||
SPACE_MinHeight, 16,
|
||||
SPACE_Transparent, TRUE,
|
||||
SPACE_Transparent, FALSE,
|
||||
// SPACE_RenderHook, &g->shared->favicon_hook,
|
||||
SpaceEnd,
|
||||
CHILD_WeightedWidth,0,
|
||||
@ -2847,7 +2847,7 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw,
|
||||
GA_ID, GID_SEARCH_ICON,
|
||||
SPACE_MinWidth, 16,
|
||||
SPACE_MinHeight, 16,
|
||||
SPACE_Transparent, TRUE,
|
||||
SPACE_Transparent, FALSE,
|
||||
SPACE_RenderHook, &g->shared->search_ico_hook,
|
||||
SpaceEnd,
|
||||
CHILD_WeightedWidth,0,
|
||||
@ -3823,8 +3823,8 @@ void gui_window_set_icon(struct gui_window *g, hlcache_handle *icon)
|
||||
{
|
||||
GetAttr(SPACE_AreaBox, g->shared->objects[GID_ICON], (ULONG *)&bbox);
|
||||
|
||||
EraseRect(g->shared->win->RPort, bbox->Left, bbox->Top,
|
||||
bbox->Left+16, bbox->Top+16);
|
||||
RefreshGList((struct Gadget *)g->shared->objects[GID_ICON],
|
||||
g->shared->win, NULL, 1);
|
||||
|
||||
if(bm)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user