summaryrefslogtreecommitdiff
path: root/atari/bitmap.h
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-07-23 02:03:09 +0200
committerOle Loots <ole@monochrom.net>2012-07-23 02:03:09 +0200
commit2158ed7bce81e884effecf747ee8430042c08056 (patch)
treed4e8bdb989357a86aa6f9a9b9c79a35b8a5579dd /atari/bitmap.h
parent5433eecfeaf0517a3ed91b2a2beb9f78eaf4cef6 (diff)
downloadnetsurf-2158ed7bce81e884effecf747ee8430042c08056.tar.gz
netsurf-2158ed7bce81e884effecf747ee8430042c08056.tar.bz2
moved "bitmap_resize()" to bitmap.c
Diffstat (limited to 'atari/bitmap.h')
-rwxr-xr-xatari/bitmap.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/atari/bitmap.h b/atari/bitmap.h
index 7002a14ee..ed8093835 100755
--- a/atari/bitmap.h
+++ b/atari/bitmap.h
@@ -20,6 +20,9 @@
#define NS_ATARI_BITMAP_H
#include <gem.h>
+#include <Hermes/Hermes.h>
+
+#define NS_BMP_DEFAULT_BPP 4
/* Flags for init_mfdb function: */
#define MFDB_FLAG_STAND 0x01
@@ -60,12 +63,12 @@ struct bitmap {
bool converted;
};
-#define NS_BMP_DEFAULT_BPP 4
-
void * bitmap_create_ex( int w, int h, short bpp, int rowstride, unsigned int state, void * pixdata );
void bitmap_to_mfdb(void * bitmap, MFDB * out);
void * bitmap_realloc( int w, int h, short bpp, int rowstride, unsigned int state, void * bmp );
size_t bitmap_buffer_size( void * bitmap ) ;
+bool bitmap_resize(struct bitmap * img, HermesHandle hermes_h,
+ HermesFormat *fmt, int nw, int nh);
/*
setup an MFDB struct and allocate memory for it when it is needed.
If bpp == 0, this function assumes that the MFDB shall point to the screen