diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-02-12 10:54:41 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-02-12 10:54:41 +0000 |
commit | 5487b42cb783dca4c39cb865efa43e6c897ea61e (patch) | |
tree | 0ce64df2a724e40808e50866796b76f0152ccd69 /amiga/gui.c | |
parent | da130ad67d03f35d09f6f56a5fa31bab164ca81a (diff) | |
download | netsurf-5487b42cb783dca4c39cb865efa43e6c897ea61e.tar.gz netsurf-5487b42cb783dca4c39cb865efa43e6c897ea61e.tar.bz2 |
Fix clip parameters, plain text scrolling now works
svn path=/trunk/netsurf/; revision=11650
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-x | amiga/gui.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index ed76ec718..f58395c32 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -3295,28 +3295,14 @@ void ami_do_redraw(struct gui_window_2 *g) clip.x0 = 0; clip.y0 = 0; - clip.x1 = width; - clip.y1 = height; + clip.x1 = width + hcurrent; + clip.y1 = height + vcurrent; ami_clg(0xffffff); glob->scale = g->bw->scale; browser_window_redraw(g->bw, -hcurrent, -vcurrent, clip); -#if 0 - } - else - { - content_redraw(c, -hcurrent /* * g->bw->scale */, - -vcurrent /* * g->bw->scale */, - (width / g->bw->scale), //- hcurrent, - (height / g->bw->scale), // - vcurrent, - hcurrent, vcurrent, width + hcurrent /* * g->bw->scale */, - height + vcurrent /* * g->bw->scale */, - g->bw->scale,0xFFFFFF); - - } -#endif ami_clearclipreg(&browserglob); BltBitMapRastPort(browserglob.bm,0,0,g->win->RPort,bbox->Left,bbox->Top, bbox->Width,bbox->Height,0x0C0); |