From 6b6f8790d594c0e870055109c9aef71469c5a934 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sun, 20 Dec 2020 17:48:07 +0100 Subject: [PATCH] fix the "Screen_size_in_GIF" feature. The canvas must not be smaller than the picture ! --- src/giformat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/giformat.c b/src/giformat.c index bf2b7d01..45f27cdc 100644 --- a/src/giformat.c +++ b/src/giformat.c @@ -879,8 +879,9 @@ void Save_GIF(T_IO_Context * context) alphabet_sister = (word *)GFX2_malloc(4096*sizeof(word)); // On initialise le LSDB du fichier - if (Config.Screen_size_in_GIF) + if (Config.Screen_size_in_GIF && Screen_width >= context->Width && Screen_height >= context->Height) { + // Canvas bigger than the image LSDB.Width=Screen_width; LSDB.Height=Screen_height; }