diff options
Diffstat (limited to 'amiga')
-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; |