From 8c6dab520d92b4149fd74c01f883bdc87245fd5c Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 5 Aug 2012 23:51:59 +0100 Subject: misc --- amiga/bitmap.c | 9 +++++++-- amiga/plotters.c | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'amiga') diff --git a/amiga/bitmap.c b/amiga/bitmap.c index c82c90bc8..0190ed0b3 100644 --- a/amiga/bitmap.c +++ b/amiga/bitmap.c @@ -117,10 +117,15 @@ void bitmap_destroy(void *bitmap) if(bm) { - if((bm->nativebm) && (bm->dto == NULL)) + if((bm->nativebm) && (bm->dto == NULL)) { p96FreeBitMap(bm->nativebm); + bm->nativebm = NULL; + } - if(bm->dto) DisposeDTObject(bm->dto); + if(bm->dto) { + DisposeDTObject(bm->dto); + bm->dto = NULL; + } FreeVec(bm->pixdata); bm->pixdata = NULL; diff --git a/amiga/plotters.c b/amiga/plotters.c index cdd5aac7a..e784e5cdb 100755 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -686,7 +686,7 @@ static bool ami_bitmap(int x, int y, int width, int height, struct bitmap *bitma } else { tag = BLITA_MaskPlane; tag_data = (ULONG)bitmap->native_mask; - minterm = 0xc0; /* Should be (ABC|ABNC|ANBC) */ + minterm = 0xc0; /* should be (ABC|ABNC|ANBC); */ } BltBitMapTags(BLITA_Width,width, -- cgit v1.2.3