Fix fast scrolling when scaled

svn path=/trunk/netsurf/; revision=9524
This commit is contained in:
Chris Young 2009-08-31 12:12:00 +00:00
parent 057bbb634f
commit 8d72c1106c
1 changed files with 18 additions and 8 deletions

View File

@ -2544,24 +2544,34 @@ void ami_do_redraw(struct gui_window_2 *g)
if(vcurrent>oldv) if(vcurrent>oldv)
{ {
ami_do_redraw_limits(g->bw->window,c,hcurrent,height+oldv, ami_do_redraw_limits(g->bw->window, c,
hcurrent+width,vcurrent+height,hcurrent,vcurrent); hcurrent, (height / g->bw->scale) + oldv,
hcurrent + (width / g->bw->scale),
vcurrent+(height / g->bw->scale),
hcurrent, vcurrent);
} }
else if(vcurrent<oldv) else if(vcurrent<oldv)
{ {
ami_do_redraw_limits(g->bw->window,c,hcurrent,vcurrent, ami_do_redraw_limits(g->bw->window, c,
hcurrent+width,oldv,hcurrent,vcurrent); hcurrent, vcurrent,
hcurrent + (width / g->bw->scale),
oldv, hcurrent, vcurrent);
} }
if(hcurrent>oldh) if(hcurrent>oldh)
{ {
ami_do_redraw_limits(g->bw->window,c,width+oldh,vcurrent, ami_do_redraw_limits(g->bw->window, c,
hcurrent+width,vcurrent+height,hcurrent,vcurrent); (width / g->bw->scale) + oldh, vcurrent,
hcurrent + (width / g->bw->scale),
vcurrent + (height / g->bw->scale),
hcurrent, vcurrent);
} }
else if(hcurrent<oldh) else if(hcurrent<oldh)
{ {
ami_do_redraw_limits(g->bw->window,c,hcurrent,vcurrent, ami_do_redraw_limits(g->bw->window, c,
oldh,vcurrent+height,hcurrent,vcurrent); hcurrent, vcurrent,
oldh, vcurrent+(height / g->bw->scale),
hcurrent, vcurrent);
} }
} }
else else