comparison src/glyphs-x.c @ 112:48d667d6f17f r20-1b8

Import from CVS: tag r20-1b8
author cvs
date Mon, 13 Aug 2007 09:20:48 +0200
parents 4be1180a9e89
children 8619ce7e4c50
comparison
equal deleted inserted replaced
111:164ab62060bf 112:48d667d6f17f
1676 &sp->RasterBits[(Row++) * Width + Col], 1676 &sp->RasterBits[(Row++) * Width + Col],
1677 Width) == GIF_ERROR) 1677 Width) == GIF_ERROR)
1678 return GIF_ERROR; 1678 return GIF_ERROR;
1679 } 1679 }
1680 } 1680 }
1681
1682 /* Only get 1 image from animated gifs. */
1683 /* #### if the rest of the file was bad, we still return
1684 GIF_OK, since we don't even bother looking at it. Should
1685 probably check for ImageCount == 1 above too, hmm. */
1686 goto done;
1681 break; 1687 break;
1682 1688
1683 case EXTENSION_RECORD_TYPE: 1689 case EXTENSION_RECORD_TYPE:
1684 /* Skip any extension blocks in file: */ 1690 /* Skip any extension blocks in file: */
1685 if (DGifGetExtension (GifFile, &ExtCode, &Extension) == GIF_ERROR) 1691 if (DGifGetExtension (GifFile, &ExtCode, &Extension) == GIF_ERROR)
1698 default: /* Should be traps by DGifGetRecordType. */ 1704 default: /* Should be traps by DGifGetRecordType. */
1699 break; 1705 break;
1700 } 1706 }
1701 } 1707 }
1702 while (RecordType != TERMINATE_RECORD_TYPE); 1708 while (RecordType != TERMINATE_RECORD_TYPE);
1709
1710 done:
1703 1711
1704 return GIF_OK; 1712 return GIF_OK;
1705 } 1713 }
1706 1714
1707 static void 1715 static void