Don't bother trying to render things that are completely off the screen
svn path=/trunk/netsurf/; revision=6412
This commit is contained in:
parent
72b8a67660
commit
b3bc3eb896
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue