mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-15 15:19:19 +03:00
Don't need to set current_redraw_browser any more.
svn path=/trunk/netsurf/; revision=12654
This commit is contained in:
parent
6fed775565
commit
42467f16dd
@ -3209,8 +3209,6 @@ void ami_do_redraw_limits(struct gui_window *g, struct browser_window *bw,
|
||||
|
||||
GetAttr(SPACE_AreaBox, g->shared->objects[GID_BROWSER], (ULONG *)&bbox);
|
||||
|
||||
current_redraw_browser = bw;
|
||||
|
||||
width=bbox->Width / bw->scale;
|
||||
height=bbox->Height / bw->scale;
|
||||
xoffset=bbox->Left;
|
||||
@ -3286,8 +3284,6 @@ void ami_do_redraw_limits(struct gui_window *g, struct browser_window *bw,
|
||||
browserglob.rp = temprp;
|
||||
}
|
||||
}
|
||||
|
||||
current_redraw_browser = NULL;
|
||||
}
|
||||
|
||||
void gui_window_redraw_window(struct gui_window *g)
|
||||
@ -3333,8 +3329,6 @@ void ami_do_redraw(struct gui_window_2 *g)
|
||||
|
||||
c = g->bw->current_content;
|
||||
|
||||
current_redraw_browser = g->bw;
|
||||
|
||||
width=bbox->Width;
|
||||
height=bbox->Height;
|
||||
xoffset=bbox->Left;
|
||||
@ -3448,8 +3442,6 @@ void ami_do_redraw(struct gui_window_2 *g)
|
||||
}
|
||||
}
|
||||
|
||||
current_redraw_browser = NULL;
|
||||
|
||||
ami_update_buttons(g);
|
||||
|
||||
g->oldh = hcurrent;
|
||||
|
@ -58,12 +58,9 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
|
||||
bitmap->nativebmwidth = bitmap->width;
|
||||
bitmap->nativebmheight = bitmap->height;
|
||||
ami_clearclipreg(&browserglob);
|
||||
current_redraw_browser = curbw;
|
||||
|
||||
thumbnail_redraw(content, plot_width, plot_height, &ctx);
|
||||
|
||||
current_redraw_browser = NULL;
|
||||
|
||||
if(GfxBase->LibNode.lib_Version >= 53) // AutoDoc says v52, but this function isn't in OS4.0, so checking for v53 (OS4.1)
|
||||
{
|
||||
float resample_scale = bitmap->width / (float)plot_width;
|
||||
|
Loading…
Reference in New Issue
Block a user