diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2006-02-22 01:58:19 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2006-02-22 01:58:19 +0000 |
commit | 3d9a1198db571973e2760d6f27c771cbe31c844b (patch) | |
tree | 5a306a7fdf135f63fa1bd031924fb18edc5ecc2b /image/gifread.c | |
parent | 01cc7987c7af26c70269c81e9d344fd2e91a8793 (diff) | |
download | netsurf-3d9a1198db571973e2760d6f27c771cbe31c844b.tar.gz netsurf-3d9a1198db571973e2760d6f27c771cbe31c844b.tar.bz2 |
[project @ 2006-02-22 01:58:19 by rjw]
Reduce constant bitmap overhead per reference by moving to a flag word. Allow bitmaps to be reduced back to their raw data to free extra memory in a highly efficient manner.
svn path=/import/netsurf/; revision=2089
Diffstat (limited to 'image/gifread.c')
-rw-r--r-- | image/gifread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/image/gifread.c b/image/gifread.c index ba26452d8..9d81bb6a7 100644 --- a/image/gifread.c +++ b/image/gifread.c @@ -204,7 +204,7 @@ int gif_initialise(struct gif_animation *gif) { /* Initialise the sprite header */ - if ((gif->frame_image = bitmap_create(gif->width, gif->height, BITMAP_ALLOCATE_MEMORY)) == NULL) { + if ((gif->frame_image = bitmap_create(gif->width, gif->height, BITMAP_NEW)) == NULL) { gif_finalise(gif); return GIF_INSUFFICIENT_MEMORY; } @@ -283,7 +283,7 @@ static int gif_initialise_sprite(struct gif_animation *gif, unsigned int width, /* Allocate some more memory */ - if ((buffer = bitmap_create(max_width, max_height, BITMAP_ALLOCATE_MEMORY)) == NULL) + if ((buffer = bitmap_create(max_width, max_height, BITMAP_NEW)) == NULL) return GIF_INSUFFICIENT_MEMORY; bitmap_destroy(gif->frame_image); gif->frame_image = buffer; |