mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-13 22:29:26 +03:00
Don't bother plotting bitmaps that are completely out of the clip zone.
svn path=/trunk/netsurf/; revision=7401
This commit is contained in:
parent
0ac64cfce6
commit
ed40acf873
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user