diff options
Diffstat (limited to 'amiga')
-rw-r--r-- | amiga/bitmap.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 <proto/intuition.h> #include <proto/utility.h> #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)) { |