changeset 43426:f260f08997bc

(gif_load): Use correct width and height for GIF images.
author Pavel Janík <Pavel@Janik.cz>
date Wed, 20 Feb 2002 10:26:42 +0000
parents 943d6207cba5
children 43b2b2f46437
files src/xfns.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Wed Feb 20 09:04:25 2002 +0000
+++ b/src/xfns.c	Wed Feb 20 10:26:42 2002 +0000
@@ -10161,8 +10161,8 @@
       return 0;
     }
 
-  width = img->width = gif->SWidth;
-  height = img->height = gif->SHeight;
+  width = img->width = max (gif->SWidth, gif->Image.Left + gif->Image.Width);
+  height = img->height = max (gif->SHeight, gif->Image.Top + gif->Image.Height);
 
   /* Create the X image and pixmap.  */
   if (!x_create_x_image_and_pixmap (f, width, height, 0, &ximg, &img->pixmap))