From a40a124049c9d9e8345bd80b89706bbff33bee0e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pavel=20Jan=C3=ADk?= Date: Wed, 20 Feb 2002 10:28:33 +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 ee99cac5bfa..6dc6063e6cb 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-18 Jason Rumney * w32term.c (glyph_rect): Determine the row and glyph more precisely. diff --git a/src/xfns.c b/src/xfns.c index 836e2d4c827..b43ec0ea347 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -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)) -- 2.39.2