diff options
author | Ole Loots <ole@monochrom.net> | 2012-04-10 23:07:10 +0000 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2012-04-10 23:07:10 +0000 |
commit | 3158226bbed794a8676be11736f055c0716bd5d7 (patch) | |
tree | 3dd5914a8da512ebee44d11a2d89cfc9d1118b47 | |
parent | b400b7c22bb56c943225b08e4146192aae7aaa5f (diff) | |
download | netsurf-3158226bbed794a8676be11736f055c0716bd5d7.tar.gz netsurf-3158226bbed794a8676be11736f055c0716bd5d7.tar.bz2 |
Introduced BITMAPF_BUFFER_NATIVE and native image buffer, for fast redraw of bitmaps.
svn path=/trunk/netsurf/; revision=13846
-rwxr-xr-x | atari/bitmap.c | 2 | ||||
-rwxr-xr-x | atari/bitmap.h | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/atari/bitmap.c b/atari/bitmap.c index 696bc68b1..e123546ab 100755 --- a/atari/bitmap.c +++ b/atari/bitmap.c @@ -240,6 +240,8 @@ void bitmap_destroy(void *bitmap) if( bm->resized != NULL ) { bitmap_destroy(bm->resized); } + if( bm->native.fd_addr ) + free( bm->native.fd_addr ); free(bm->pixdata); free(bm); } diff --git a/atari/bitmap.h b/atari/bitmap.h index d1756185d..f198db48e 100755 --- a/atari/bitmap.h +++ b/atari/bitmap.h @@ -19,10 +19,9 @@ #ifndef NS_ATARI_BITMAP_H #define NS_ATARI_BITMAP_H -#define BITMAP_SHRINK 0 -#define BITMAP_GROW 0x1024 -#define BITMAP_MONOGLYPH 0x2048 -#define BITMAP_CLEAR 0x4096 +#define BITMAP_SHRINK 0 +#define BITMAP_GROW 1024 /* Don't realloc when bitmap size shrinks */ +#define BITMAP_CLEAR 2048 /* Zero bitmap memory */ struct bitmap { int width; @@ -32,6 +31,7 @@ struct bitmap { short bpp; /* number of BYTES! per pixel */ size_t rowstride; struct bitmap * resized; + MFDB native; }; #define NS_BMP_DEFAULT_BPP 4 |