HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(gif_load): Use correct width and height for GIF images.
[bpt/emacs.git]
/
src
/
xfns.c
diff --git
a/src/xfns.c
b/src/xfns.c
index
4611d29
..
b8818b6
100644
(file)
--- a/
src/xfns.c
+++ b/
src/xfns.c
@@
-10161,8
+10161,8
@@
gif_load (f, img)
return 0;
}
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))
/* Create the X image and pixmap. */
if (!x_create_x_image_and_pixmap (f, width, height, 0, &ximg, &img->pixmap))