aboutsummaryrefslogtreecommitdiff
path: root/graphics/gd/files/gd_gif_in.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/gd/files/gd_gif_in.c')
-rw-r--r--graphics/gd/files/gd_gif_in.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/graphics/gd/files/gd_gif_in.c b/graphics/gd/files/gd_gif_in.c
index 6e779c820963..fc1b587cc8b4 100644
--- a/graphics/gd/files/gd_gif_in.c
+++ b/graphics/gd/files/gd_gif_in.c
@@ -76,6 +76,18 @@ static void ReadImage (gdImagePtr im, gdIOCtx *fd, int len, int height, unsigned
int ZeroDataBlock;
+gdImagePtr gdImageCreateFromGifSource(gdSourcePtr inSource)
+{
+ gdIOCtx *in = gdNewSSCtx(inSource, NULL);
+ gdImagePtr im;
+
+ im = gdImageCreateFromGifCtx(in);
+
+ in->gd_free(in);
+
+ return im;
+}
+
gdImagePtr
gdImageCreateFromGif(FILE *fdFile)
{
@@ -84,7 +96,7 @@ gdImageCreateFromGif(FILE *fdFile)
im = gdImageCreateFromGifCtx(fd);
- fd->free(fd);
+ fd->gd_free(fd);
return im;
}
@@ -92,7 +104,7 @@ gdImageCreateFromGif(FILE *fdFile)
gdImagePtr
gdImageCreateFromGifCtx(gdIOCtxPtr fd)
{
- int imageNumber;
+/* 1.4 int imageNumber; */
int BitPixel;
int ColorResolution;
int Background;