1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-23 04:53:12 -08:00

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

This commit is contained in:
Pavel Janík 2002-02-20 10:28:33 +00:00
parent d61b6b9852
commit a40a124049
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2002-02-20 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
* xfns.c (gif_load): Use correct width and height for GIF images.
2002-02-18 Jason Rumney <jasonr@gnu.org>
* w32term.c (glyph_rect): Determine the row and glyph more precisely.

View file

@ -9794,8 +9794,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))