From c9f25d5e4a71a525cc1128f4054e7a988ede4516 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 28 Feb 2011 23:33:22 +0000 Subject: Don't plot 0 size bitmaps svn path=/trunk/netsurf/; revision=11867 --- amiga/plotters.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3