diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-02-28 23:33:22 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-02-28 23:33:22 +0000 |
commit | c9f25d5e4a71a525cc1128f4054e7a988ede4516 (patch) | |
tree | a09ea8a219aef7f163c3d8b55095780245db9c80 | |
parent | ff60f79cb504ac8763b94f1a941cace583c2b374 (diff) | |
download | netsurf-c9f25d5e4a71a525cc1128f4054e7a988ede4516.tar.gz netsurf-c9f25d5e4a71a525cc1128f4054e7a988ede4516.tar.bz2 |
Don't plot 0 size bitmaps
svn path=/trunk/netsurf/; revision=11867
-rwxr-xr-x | amiga/plotters.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c index 76ab88303..36b5a432a 100755 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -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); |