comparison src/glyphs-x.c @ 34:d620409f5eb8 r19-15b100

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