From c7f07c4c3524e3d03fda9272d106a525c6a361f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pavel=20Jan=C3=ADk?= Date: Wed, 20 Feb 2002 10:27:06 +0000 Subject: [PATCH] (gif_load): Use correct width and height for GIF images. --- src/ChangeLog | 4 ++++ src/xfns.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index ab27f83b46..0c900eacff 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2002-02-20 Pavel Jan,Bm(Bk + + * xfns.c (gif_load): Use correct width and height for GIF images. + 2002-02-19 Eli Zaretskii * floatfns.c (Fatan): Accept an optional second arg and call diff --git a/src/xfns.c b/src/xfns.c index 4611d29aae..b8818b6c5b 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -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)) -- 2.20.1