From 34c79b454ac37148d3bfce25874ef0a942d806aa Mon Sep 17 00:00:00 2001 From: Chris Young Date: Wed, 8 Aug 2012 18:41:16 +0100 Subject: debug --- amiga/bitmap.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'amiga/bitmap.c') diff --git a/amiga/bitmap.c b/amiga/bitmap.c index edc091669..3c213ca3d 100644 --- a/amiga/bitmap.c +++ b/amiga/bitmap.c @@ -35,6 +35,7 @@ #include #include #include "utils/messages.h" +#include "utils/log.h" /** * Create a bitmap. @@ -48,7 +49,7 @@ void *bitmap_create(int width, int height, unsigned int state) { struct bitmap *bitmap; - + bitmap = AllocVec(sizeof(struct bitmap),MEMF_PRIVATE | MEMF_CLEAR); if(bitmap) { @@ -62,6 +63,9 @@ void *bitmap_create(int width, int height, unsigned int state) if(state & BITMAP_OPAQUE) bitmap->opaque = true; else bitmap->opaque = false; } + + LOG(("Created bitmap %lx", bitmap)); + return bitmap; } @@ -115,6 +119,8 @@ void bitmap_destroy(void *bitmap) { struct bitmap *bm = bitmap; + LOG(("Freeing bitmap %lx", bitmap)); + if(bm) { if((bm->nativebm) && (bm->dto == NULL)) { -- cgit v1.2.3