Don't plot 0 size bitmaps
svn path=/trunk/netsurf/; revision=11867
This commit is contained in:
parent
ff60f79cb5
commit
c9f25d5e4a
|
@ -596,6 +596,8 @@ bool ami_bitmap_tile(int x, int y, int width, int height,
|
|||
bool repeat_x = (flags & BITMAPF_REPEAT_X);
|
||||
bool repeat_y = (flags & BITMAPF_REPEAT_Y);
|
||||
|
||||
if((width == 0) || (height == 0)) return true;
|
||||
|
||||
if(!(repeat_x || repeat_y))
|
||||
return ami_bitmap(x, y, width, height, bitmap);
|
||||
|
||||
|
|
Loading…
Reference in New Issue