From 4cc85469cb26f8ea1a8f14f17bddb6a5cbea1e88 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Tue, 21 Feb 2006 20:49:12 +0000 Subject: [project @ 2006-02-21 20:49:11 by rjw] Allow any content to be used as a background. Simplify bitmap code. svn path=/import/netsurf/; revision=2087 --- image/gifread.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'image/gifread.c') diff --git a/image/gifread.c b/image/gifread.c index 76a067c68..ba26452d8 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, false)) == NULL) { + if ((gif->frame_image = bitmap_create(gif->width, gif->height, BITMAP_ALLOCATE_MEMORY)) == NULL) { gif_finalise(gif); return GIF_INSUFFICIENT_MEMORY; } @@ -273,7 +273,8 @@ static int gif_initialise_sprite(struct gif_animation *gif, unsigned int width, /* Check if we've changed */ - if ((width <= gif->width) && (height <= gif->height)) return 0; + if ((width <= gif->width) && (height <= gif->height)) + return 0; /* Get our maximum values */ @@ -282,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, false)) == NULL) + if ((buffer = bitmap_create(max_width, max_height, BITMAP_ALLOCATE_MEMORY)) == NULL) return GIF_INSUFFICIENT_MEMORY; bitmap_destroy(gif->frame_image); gif->frame_image = buffer; -- cgit v1.2.3