mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-11 05:51:21 -08:00
* src/image.c (gif_load): Fix calculation of bottom and right corner.
(Bug#9468)
This commit is contained in:
parent
80ad64f4f5
commit
8d903f4e5d
2 changed files with 9 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue