Don't bother plotting bitmaps that are completely out of the clip zone.

svn path=/trunk/netsurf/; revision=7401
This commit is contained in:
Chris Young 2009-05-05 19:51:25 +00:00
parent 0ac64cfce6
commit ed40acf873

View File

@ -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;