summaryrefslogtreecommitdiff
path: root/amiga/bitmap.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-10-16 09:55:01 +0100
committerVincent Sanders <vince@kyllikki.org>2014-10-16 22:33:44 +0100
commit0b64df140c87c81d5046c0a97b5a655ca7af170b (patch)
tree3e0e1d5038e2b8d27f859d22c1c3f2205363d2c7 /amiga/bitmap.c
parent3b4dea6241a09f745f7c4c54c302e6b4a0052680 (diff)
downloadnetsurf-0b64df140c87c81d5046c0a97b5a655ca7af170b.tar.gz
netsurf-0b64df140c87c81d5046c0a97b5a655ca7af170b.tar.bz2
Update amiga frontend for split operation table header changes
Diffstat (limited to 'amiga/bitmap.c')
-rw-r--r--amiga/bitmap.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/amiga/bitmap.c b/amiga/bitmap.c
index 271978b2e..bab6746c7 100644
--- a/amiga/bitmap.c
+++ b/amiga/bitmap.c
@@ -18,9 +18,6 @@
#include "amiga/os3support.h"
-#include "assert.h"
-#include "amiga/bitmap.h"
-#include "amiga/download.h"
#include <proto/exec.h>
#include <proto/Picasso96API.h>
#ifdef __amigaos4__
@@ -34,7 +31,15 @@
#include <proto/dos.h>
#include <proto/intuition.h>
#include <proto/utility.h>
+#include "assert.h"
+
#include "utils/messages.h"
+#include "desktop/mouse.h"
+#include "desktop/gui_window.h"
+
+#include "amiga/gui.h"
+#include "amiga/bitmap.h"
+#include "amiga/download.h"
/**
* Create a bitmap.
@@ -290,6 +295,7 @@ void ami_bitmap_argb_to_rgba(struct bitmap *bm)
}
#endif
+#if BITMAP_DUMP
void bitmap_dump(struct bitmap *bitmap)
{
int x,y;
@@ -306,18 +312,19 @@ void bitmap_dump(struct bitmap *bitmap)
printf("\n");
}
}
+#endif
Object *ami_datatype_object_from_bitmap(struct bitmap *bitmap)
{
Object *dto;
struct BitMapHeader *bmhd;
- if(dto = NewDTObject(NULL,
+ if((dto = NewDTObject(NULL,
DTA_SourceType,DTST_RAM,
DTA_GroupID,GID_PICTURE,
//DTA_BaseName,"ilbm",
PDTA_DestMode,PMODE_V43,
- TAG_DONE))
+ TAG_DONE)))
{
if(GetDTAttrs(dto,PDTA_BitMapHeader,&bmhd,TAG_DONE))
{