Don't need to set current_redraw_browser any more.

svn path=/trunk/netsurf/; revision=12654
This commit is contained in:
Michael Drake 2011-08-24 13:33:58 +00:00
parent 6fed775565
commit 42467f16dd
2 changed files with 0 additions and 11 deletions

View File

@ -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;

View File

@ -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;