summaryrefslogtreecommitdiff
path: root/graphics/gd/files/gd_gif_in.c
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-08-18 16:15:10 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-08-18 16:15:10 +0000
commitefb928619b234d49b326a13f59a6e2ee354bf902 (patch)
treec62bd82140831e81442480b9cefc699e0c08f08d /graphics/gd/files/gd_gif_in.c
parentUpdate to 5.0.8. As reported by Paul Szabo in (diff)
o Main modification
graphics/gd(based on 1.8.4) -> graphics/gd1 graphics/gd2(based on 2.0.15) -> graphics/gd graphics/p5-GD(based on 1.41) -> graphics/p5-GD1 graphics/p5-GD2(based on 2.07) -> graphics/p5-GD japanese/gd -> japanese/gd1 japanese/gd2 -> japanese/gd o Include some feature WITH_XPM(w/, w/o WITHOUT_X11) o Chase this modification o Fix build error [1] PR: ports/54540 Submitted by: Ports Fury Approved by: maintainer (blanket) Reported by: bento via kris [1]
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;