Commit 8d903f4e authored by Andreas Schwab's avatar Andreas Schwab
Browse files

* src/image.c (gif_load): Fix calculation of bottom and right corner.

(Bug#9468)
parent 80ad64f4
2011-09-10 Andreas Schwab <schwab@linux-m68k.org>
* image.c (gif_load): Fix calculation of bottom and right corner.
(Bug#9468)
2011-09-10 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (MAX_DISP_SCAN): Decrease to 250. Prevents sluggish
......
......@@ -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))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment