/[emacs]/emacs/src/image.c
ViewVC logotype

Diff of /emacs/src/image.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.33 by mituharu, Wed Aug 31 08:35:28 2005 UTC revision 1.34 by kfstorm, Wed Sep 28 10:48:20 2005 UTC
# Line 7369  gif_load (f, img) Line 7369  gif_load (f, img)
7369        return 0;        return 0;
7370      }      }
7371    
7372    width = img->width = max (gif->SWidth, gif->Image.Left + gif->Image.Width);    image_top = gif->SavedImages[ino].ImageDesc.Top;
7373    height = img->height = max (gif->SHeight, gif->Image.Top + gif->Image.Height);    image_left = gif->SavedImages[ino].ImageDesc.Left;
7374      image_width = gif->SavedImages[ino].ImageDesc.Width;
7375      image_height = gif->SavedImages[ino].ImageDesc.Height;
7376    
7377      width = img->width = max (gif->SWidth,
7378                                max (gif->Image.Left + gif->Image.Width,
7379                                     image_left + image_width));
7380      height = img->height = max (gif->SHeight,
7381                                  max (gif->Image.Top + gif->Image.Height,
7382                                       image_top + image_height));
7383    
7384    /* Create the X image and pixmap.  */    /* Create the X image and pixmap.  */
7385    if (!x_create_x_image_and_pixmap (f, width, height, 0, &ximg, &img->pixmap))    if (!x_create_x_image_and_pixmap (f, width, height, 0, &ximg, &img->pixmap))
# Line 7405  gif_load (f, img) Line 7414  gif_load (f, img)
7414       requires more than can be done here (see the gif89 spec,       requires more than can be done here (see the gif89 spec,
7415       disposal methods).  Let's simply assume that the part       disposal methods).  Let's simply assume that the part
7416       not covered by a sub-image is in the frame's background color.  */       not covered by a sub-image is in the frame's background color.  */
   image_top = gif->SavedImages[ino].ImageDesc.Top;  
   image_left = gif->SavedImages[ino].ImageDesc.Left;  
   image_width = gif->SavedImages[ino].ImageDesc.Width;  
   image_height = gif->SavedImages[ino].ImageDesc.Height;  
   
7417    for (y = 0; y < image_top; ++y)    for (y = 0; y < image_top; ++y)
7418      for (x = 0; x < width; ++x)      for (x = 0; x < width; ++x)
7419        XPutPixel (ximg, x, y, FRAME_BACKGROUND_PIXEL (f));        XPutPixel (ximg, x, y, FRAME_BACKGROUND_PIXEL (f));

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26