From a4dbb87a764086cb9e6b76ac73548d62c03e23e0 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 1 Feb 2015 11:08:05 +0000 Subject: Fix another instance of BltMaskBitMapRastPort potentially being called with a NULL bltmask --- amiga/plotters.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'amiga/plotters.c') diff --git a/amiga/plotters.c b/amiga/plotters.c index 1d074e855..3c1a09099 100755 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -545,8 +545,11 @@ static bool ami_bitmap(int x, int y, int width, int height, struct bitmap *bitma tag, tag_data, TAG_DONE); #else - /* Assume mask is always required */ - BltMaskBitMapRastPort(tbm, 0, 0, glob->rp, x, y, width, height, minterm, tag_data); + if(tag_data) { + BltMaskBitMapRastPort(tbm, 0, 0, glob->rp, x, y, width, height, minterm, tag_data); + } else { + BltBitMapRastPort(tbm, 0, 0, glob->rp, x, y, width, height, 0xc0); + } #endif } -- cgit v1.2.3