Don't plot 0 size bitmaps

svn path=/trunk/netsurf/; revision=11867
This commit is contained in:
Chris Young 2011-02-28 23:33:22 +00:00
parent ff60f79cb5
commit c9f25d5e4a
1 changed files with 2 additions and 0 deletions

View File

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