summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
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);