fix the "Screen_size_in_GIF" feature. The canvas must not be smaller than the picture !

This commit is contained in:
Thomas Bernard 2020-12-20 17:48:07 +01:00
parent c9b1c8a11e
commit 6b6f8790d5
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF

View File

@ -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;
}