summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
Diffstat (limited to 'image')
-rw-r--r--image/gif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/image/gif.c b/image/gif.c
index 7d5a2dc30..ce2d19a4b 100644
--- a/image/gif.c
+++ b/image/gif.c
@@ -160,6 +160,8 @@ bool nsgif_redraw(struct content *c, int x, int y,
if (nsgif_get_frame(c) != GIF_OK)
return false;
c->bitmap = c->data.gif.gif->frame_image;
+ if ((width == -1) && (height == -1))
+ return true;
return plot.bitmap(x, y, width, height, c->bitmap,
background_colour, BITMAPF_NONE);
}