summaryrefslogtreecommitdiff
path: root/amiga/plotters.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2009-05-05 19:51:25 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2009-05-05 19:51:25 +0000
commited40acf87308256c2d480ee323354b69b546253e (patch)
treee51cd03b68afb5b17cd9be33c87611fb3ae9840d /amiga/plotters.c
parent0ac64cfce6309f3a8f85ade654cde150aad2a657 (diff)
downloadnetsurf-ed40acf87308256c2d480ee323354b69b546253e.tar.gz
netsurf-ed40acf87308256c2d480ee323354b69b546253e.tar.bz2
Don't bother plotting bitmaps that are completely out of the clip zone.
svn path=/trunk/netsurf/; revision=7401
Diffstat (limited to 'amiga/plotters.c')
-rwxr-xr-xamiga/plotters.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c
index 565539c6f..1a746d202 100755
--- a/amiga/plotters.c
+++ b/amiga/plotters.c
@@ -354,6 +354,12 @@ bool ami_bitmap(int x, int y, int width, int height,
if(!width || !height) return true;
+ if(((x + width) < glob.rect.MinX) ||
+ ((y + height) < glob.rect.MinY) ||
+ (x > glob.rect.MaxX) ||
+ (y > glob.rect.MaxY))
+ return true;
+
tbm = ami_getcachenativebm(bitmap,width,height,currp->BitMap);
if(!tbm) return true;