diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-02-10 18:53:17 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-02-10 18:53:17 +0000 |
commit | b3bc3eb8968a0258b4c4045ad1d51e19fd5bf2b9 (patch) | |
tree | 7ee08493c01d8da2d932c852d54958d967959a2d /amiga/gui.c | |
parent | 72b8a67660ca199b31d1e771e7cb5206697407b6 (diff) | |
download | netsurf-b3bc3eb8968a0258b4c4045ad1d51e19fd5bf2b9.tar.gz netsurf-b3bc3eb8968a0258b4c4045ad1d51e19fd5bf2b9.tar.bz2 |
Don't bother trying to render things that are completely off the screen
svn path=/trunk/netsurf/; revision=6412
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-x | amiga/gui.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index bce094267..b8cc69f7a 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -2060,6 +2060,9 @@ void ami_do_redraw_limits(struct gui_window *g, struct content *c,int x0, int y0 //DebugPrintF("%ld %ld %ld %ld old\n%ld %ld %ld %ld x0-xc etc\n",x0,y0,x1,y1,x0-hcurrent,y0-vcurrent,width+x0,height+y0); + if(((y1-y0)+(yoffset+y0-vcurrent)<0) || ((y0-(int)vcurrent)>height)) return; + if(((x1-x0)+(xoffset+x0-hcurrent)<0) || ((x0-(int)hcurrent)>width)) return; + if((x0-(int)hcurrent)<0) x0 = hcurrent; if((y0-(int)vcurrent)<0) y0 = vcurrent; |