diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-02-01 11:08:05 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-02-01 11:08:05 +0000 |
commit | a4dbb87a764086cb9e6b76ac73548d62c03e23e0 (patch) | |
tree | 800d738d697ad0388093b6b166e6a9292c880a3a | |
parent | bfb9e1401eead363c511fbbbe634f73dbeef0da8 (diff) | |
download | netsurf-a4dbb87a764086cb9e6b76ac73548d62c03e23e0.tar.gz netsurf-a4dbb87a764086cb9e6b76ac73548d62c03e23e0.tar.bz2 |
Fix another instance of BltMaskBitMapRastPort potentially being called with a NULL bltmask
-rwxr-xr-x | amiga/plotters.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 } |