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)) |
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)); |