diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-08-05 23:51:59 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-08-05 23:51:59 +0100 |
commit | 8c6dab520d92b4149fd74c01f883bdc87245fd5c (patch) | |
tree | 88a1f6c4986b2b82cb64110e3d263e0cfb05de04 /amiga | |
parent | 1ef7336f22c5751f8dd35c60d2e34fe0f49af455 (diff) | |
download | netsurf-8c6dab520d92b4149fd74c01f883bdc87245fd5c.tar.gz netsurf-8c6dab520d92b4149fd74c01f883bdc87245fd5c.tar.bz2 |
misc
Diffstat (limited to 'amiga')
-rw-r--r-- | amiga/bitmap.c | 9 | ||||
-rwxr-xr-x | amiga/plotters.c | 2 |
2 files changed, 8 insertions, 3 deletions
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, |