comparison src/xfns.c @ 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 b9c592cee6ec
children 75677c801c26
comparison
equal deleted inserted replaced
43425:943d6207cba5 43426:f260f08997bc
10159 DGifCloseFile (gif); 10159 DGifCloseFile (gif);
10160 UNGCPRO; 10160 UNGCPRO;
10161 return 0; 10161 return 0;
10162 } 10162 }
10163 10163
10164 width = img->width = gif->SWidth; 10164 width = img->width = max (gif->SWidth, gif->Image.Left + gif->Image.Width);
10165 height = img->height = gif->SHeight; 10165 height = img->height = max (gif->SHeight, gif->Image.Top + gif->Image.Height);
10166 10166
10167 /* Create the X image and pixmap. */ 10167 /* Create the X image and pixmap. */
10168 if (!x_create_x_image_and_pixmap (f, width, height, 0, &ximg, &img->pixmap)) 10168 if (!x_create_x_image_and_pixmap (f, width, height, 0, &ximg, &img->pixmap))
10169 { 10169 {
10170 DGifCloseFile (gif); 10170 DGifCloseFile (gif);