From 8d903f4e5d492df1c153ba3d53c19fac9e9ec3f2 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sat, 10 Sep 2011 20:13:24 +0200 Subject: [PATCH] * src/image.c (gif_load): Fix calculation of bottom and right corner. (Bug#9468) --- src/ChangeLog | 5 +++++ src/image.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 78ef2c1c56b..6c54d3351c6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-09-10 Andreas Schwab + + * image.c (gif_load): Fix calculation of bottom and right corner. + (Bug#9468) + 2011-09-10 Eli Zaretskii * xdisp.c (MAX_DISP_SCAN): Decrease to 250. Prevents sluggish diff --git a/src/image.c b/src/image.c index fc79174c1e2..db201d5a831 100644 --- a/src/image.c +++ b/src/image.c @@ -7229,8 +7229,10 @@ gif_load (struct frame *f, struct image *img) img->corners[TOP_CORNER] = gif->SavedImages[0].ImageDesc.Top; img->corners[LEFT_CORNER] = gif->SavedImages[0].ImageDesc.Left; - img->corners[BOT_CORNER] = img->corners[TOP_CORNER] + height; - img->corners[RIGHT_CORNER] = img->corners[LEFT_CORNER] + width; + img->corners[BOT_CORNER] + = img->corners[TOP_CORNER] + gif->SavedImages[0].ImageDesc.Height; + img->corners[RIGHT_CORNER] + = img->corners[LEFT_CORNER] + gif->SavedImages[0].ImageDesc.Width; if (!check_image_size (f, width, height)) { -- 2.39.5