mirror of
git://slackware.nl/current.git
synced 2024-12-31 10:28:29 +01:00
33 lines
981 B
Diff
33 lines
981 B
Diff
|
--- libwmf-0.2.8.4/src/extra/gd/gd_png.c
|
||
|
+++ libwmf-0.2.8.4/src/extra/gd/gd_png.c
|
||
|
@@ -435,17 +435,6 @@
|
||
|
out->free (out);
|
||
|
}
|
||
|
|
||
|
-void *
|
||
|
-gdImagePngPtr (gdImagePtr im, int *size)
|
||
|
-{
|
||
|
- void *rv;
|
||
|
- gdIOCtx *out = gdNewDynamicCtx (2048, NULL);
|
||
|
- gdImagePngCtx (im, out);
|
||
|
- rv = gdDPExtractData (out, size);
|
||
|
- out->free (out);
|
||
|
- return rv;
|
||
|
-}
|
||
|
-
|
||
|
/* This routine is based in part on code from Dale Lutz (Safe Software Inc.)
|
||
|
* and in part on demo code from Chapter 15 of "PNG: The Definitive Guide"
|
||
|
* (http://www.cdrom.com/pub/png/pngbook.html).
|
||
|
--- libwmf-0.2.8.4/src/extra/gd/gd.h
|
||
|
+++ libwmf-0.2.8.4/src/extra/gd/gd.h
|
||
|
@@ -373,9 +373,6 @@
|
||
|
void gdImageGd2(gdImagePtr im, FILE *out, int cs, int fmt);
|
||
|
|
||
|
/* Best to free this memory with gdFree(), not free() */
|
||
|
-void* gdImagePngPtr(gdImagePtr im, int *size);
|
||
|
-
|
||
|
-/* Best to free this memory with gdFree(), not free() */
|
||
|
void* gdImageGdPtr(gdImagePtr im, int *size);
|
||
|
|
||
|
/* Best to free this memory with gdFree(), not free() */
|