From ed40acf87308256c2d480ee323354b69b546253e Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 5 May 2009 19:51:25 +0000 Subject: Don't bother plotting bitmaps that are completely out of the clip zone. svn path=/trunk/netsurf/; revision=7401 --- amiga/plotters.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'amiga') 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; -- cgit v1.2.3