summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2009-08-31 12:12:00 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2009-08-31 12:12:00 +0000
commit8d72c1106c97d9eb4ccdeea729443a1098131892 (patch)
tree9ddd7f4b45ce924caf801a12178f118796fa564a /amiga/gui.c
parent057bbb634f7e9991449719124d0af08a05203452 (diff)
downloadnetsurf-8d72c1106c97d9eb4ccdeea729443a1098131892.tar.gz
netsurf-8d72c1106c97d9eb4ccdeea729443a1098131892.tar.bz2
Fix fast scrolling when scaled
svn path=/trunk/netsurf/; revision=9524
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-xamiga/gui.c26
1 files changed, 18 insertions, 8 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 82460f2fc..2990aa02a 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -2544,24 +2544,34 @@ void ami_do_redraw(struct gui_window_2 *g)
if(vcurrent>oldv)
{
- ami_do_redraw_limits(g->bw->window,c,hcurrent,height+oldv,
- hcurrent+width,vcurrent+height,hcurrent,vcurrent);
+ ami_do_redraw_limits(g->bw->window, c,
+ hcurrent, (height / g->bw->scale) + oldv,
+ hcurrent + (width / g->bw->scale),
+ vcurrent+(height / g->bw->scale),
+ hcurrent, vcurrent);
}
else if(vcurrent<oldv)
{
- ami_do_redraw_limits(g->bw->window,c,hcurrent,vcurrent,
- hcurrent+width,oldv,hcurrent,vcurrent);
+ ami_do_redraw_limits(g->bw->window, c,
+ hcurrent, vcurrent,
+ hcurrent + (width / g->bw->scale),
+ oldv, hcurrent, vcurrent);
}
if(hcurrent>oldh)
{
- ami_do_redraw_limits(g->bw->window,c,width+oldh,vcurrent,
- hcurrent+width,vcurrent+height,hcurrent,vcurrent);
+ ami_do_redraw_limits(g->bw->window, c,
+ (width / g->bw->scale) + oldh, vcurrent,
+ hcurrent + (width / g->bw->scale),
+ vcurrent + (height / g->bw->scale),
+ hcurrent, vcurrent);
}
else if(hcurrent<oldh)
{
- ami_do_redraw_limits(g->bw->window,c,hcurrent,vcurrent,
- oldh,vcurrent+height,hcurrent,vcurrent);
+ ami_do_redraw_limits(g->bw->window, c,
+ hcurrent, vcurrent,
+ oldh, vcurrent+(height / g->bw->scale),
+ hcurrent, vcurrent);
}
}
else