summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2009-03-29 10:53:51 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2009-03-29 10:53:51 +0000
commit736cb29be068769e5d729789a1979fc977f14457 (patch)
treef20a8bc4ddd130bdf4228ce3925065a217ce45dd /amiga
parent87add71110da4fc9f2d63bcab59ba7652c27cb6f (diff)
downloadnetsurf-736cb29be068769e5d729789a1979fc977f14457.tar.gz
netsurf-736cb29be068769e5d729789a1979fc977f14457.tar.bz2
Stop screen updates going odd when animated GIFs are in the page.
Much simpler tests than before too. svn path=/trunk/netsurf/; revision=6985
Diffstat (limited to 'amiga')
-rwxr-xr-xamiga/gui.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index eafe64a6c..4b5ec62f7 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -2156,13 +2156,9 @@ DebugPrintF("%ld %ld %ld %ld old\n%ld %ld %ld %ld x0-xc etc\n",x0,y0,x1,y1,x0-hc
DebugPrintF("%ld %ld calc\n",(y1-y0)+(yoffset+y0-vcurrent),(y0-(int)vcurrent));
*/
-/* These stop the screen scrolling oddly when animated GIFs are on the page.
- * They also stop boxes (eg textarea fields) from updating when they are part-way
- * off the screen.
+ if((y1<vcurrent) || (y0>vcurrent+height)) return;
+ if((x1<hcurrent) || (x0>hcurrent+width)) return;
- 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;