This commit is contained in:
Chris Young 2012-08-08 18:41:16 +01:00
parent 1547aebdbb
commit 34c79b454a

View File

@ -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)) {