From 73b761ecf5b4d97e5ab19974bbc5273158785c29 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Wed, 4 Feb 2009 18:10:10 +0000 Subject: Try to stop rendering of things that can't be seen svn path=/trunk/netsurf/; revision=6362 --- amiga/gui.c | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/amiga/gui.c b/amiga/gui.c index 2573d5c51..6d79afd55 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -2065,8 +2065,14 @@ void ami_do_redraw_limits(struct gui_window *g, struct content *c,int x0, int y0 plot=amiplot; + if(x0-hcurrent<0) x0 = hcurrent; + if(y0-vcurrent<0) y0 = vcurrent; + + if(x1>width+x0) x1 = width+x0; + if(y1>width+y0) y1 = width+y0; + content_redraw(c, - -hcurrent,-vcurrent,width,height, + -hcurrent,-vcurrent,width-hcurrent,height-vcurrent, floorf((x0 * g->shared->bw->scale)-hcurrent), ceilf((y0 * @@ -2171,14 +2177,26 @@ note that content_redraw call needs to be modified to redraw { ami_clg(0xffffff); - content_redraw(c, -hcurrent /* * g->bw->scale */, + if(c->type == CONTENT_HTML) + { + content_redraw(c, -hcurrent /* * g->bw->scale */, -vcurrent /* * g->bw->scale */, - width /* * g->bw->scale */, + width-hcurrent /* * g->bw->scale */, + height-vcurrent /* * g->bw->scale */, + 0,0,width /* * g->bw->scale */, height /* * g->bw->scale */, + g->bw->scale,0xFFFFFF); + } + else + { + content_redraw(c, -hcurrent /* * g->bw->scale */, + -vcurrent /* * g->bw->scale */, + width-hcurrent /* * g->bw->scale */, + height-vcurrent /* * g->bw->scale */, 0,0,c->width /* * g->bw->scale */, c->height /* * g->bw->scale */, g->bw->scale,0xFFFFFF); - + } BltBitMapRastPort(glob.bm,0,0,g->win->RPort,xoffset,yoffset,width,height,0x0C0); } -- cgit v1.2.3