diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-05-05 19:51:25 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-05-05 19:51:25 +0000 |
commit | ed40acf87308256c2d480ee323354b69b546253e (patch) | |
tree | e51cd03b68afb5b17cd9be33c87611fb3ae9840d /amiga | |
parent | 0ac64cfce6309f3a8f85ade654cde150aad2a657 (diff) | |
download | netsurf-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')
-rwxr-xr-x | amiga/plotters.c | 6 |
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; |