summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2011-02-28 23:33:22 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2011-02-28 23:33:22 +0000
commitc9f25d5e4a71a525cc1128f4054e7a988ede4516 (patch)
treea09ea8a219aef7f163c3d8b55095780245db9c80 /amiga
parentff60f79cb504ac8763b94f1a941cace583c2b374 (diff)
downloadnetsurf-c9f25d5e4a71a525cc1128f4054e7a988ede4516.tar.gz
netsurf-c9f25d5e4a71a525cc1128f4054e7a988ede4516.tar.bz2
Don't plot 0 size bitmaps
svn path=/trunk/netsurf/; revision=11867
Diffstat (limited to 'amiga')
-rwxr-xr-xamiga/plotters.c2
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);