mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 06:51:26 +03:00
debug
This commit is contained in:
parent
1547aebdbb
commit
34c79b454a
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user