Commit c7f07c4c authored by Pavel Janík's avatar Pavel Janík
Browse files

(gif_load): Use correct width and height for GIF images.

parent 210f943e
2002-02-20 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
* xfns.c (gif_load): Use correct width and height for GIF images.
2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
 
* floatfns.c (Fatan): Accept an optional second arg and call
......
......@@ -10161,8 +10161,8 @@ gif_load (f, img)
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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment