summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-08 18:41:16 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-08 18:41:16 +0100
commit34c79b454ac37148d3bfce25874ef0a942d806aa (patch)
tree0a669686c012dd029d3f7c0aa3a22e3a910c54c5 /amiga
parent1547aebdbb228fd5cc71145b6f7b0d437f1b038b (diff)
downloadnetsurf-34c79b454ac37148d3bfce25874ef0a942d806aa.tar.gz
netsurf-34c79b454ac37148d3bfce25874ef0a942d806aa.tar.bz2
debug
Diffstat (limited to 'amiga')
-rw-r--r--amiga/bitmap.c8
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)) {