summaryrefslogtreecommitdiff
path: root/image/gifread.c
diff options
context:
space:
mode:
Diffstat (limited to 'image/gifread.c')
-rw-r--r--image/gifread.c7
1 files changed, 4 insertions, 3 deletions
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;