Remove caret while "fast scrolling" to prevent caret-trails over the display.

svn path=/trunk/netsurf/; revision=10132
This commit is contained in:
Chris Young 2010-03-15 18:48:14 +00:00
parent 3129db31c3
commit 50692dc63c
1 changed files with 8 additions and 0 deletions

View File

@ -3155,9 +3155,17 @@ void ami_do_redraw(struct gui_window_2 *g)
if(g->redraw_scroll && c->type == CONTENT_HTML)
{
int c_x = g->bw->window->c_x;
int c_y = g->bw->window->c_y;
int c_h = g->bw->window->c_h;
gui_window_remove_caret(g->bw->window);
ScrollWindowRaster(g->win,hcurrent-oldh,vcurrent-oldv,
xoffset,yoffset,xoffset+width,yoffset+height);
gui_window_place_caret(g->bw->window, c_x, c_y, c_h);
if(vcurrent>oldv)
{
ami_do_redraw_limits(g->bw->window, c,