2021-05-11 11:27:51 +00:00
|
|
|
Index: src/api.c
|
|
|
|
===================================================================
|
|
|
|
--- src/api.c.orig
|
2007-01-15 23:23:30 +00:00
|
|
|
+++ src/api.c
|
2021-05-11 11:27:51 +00:00
|
|
|
@@ -156,6 +156,12 @@ wmf_error_t wmf_lite_create (wmfAPI** AP
|
2007-01-15 23:23:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
API->write_data = 0;
|
|
|
|
+
|
|
|
|
+ API->user_data = 0;
|
|
|
|
+ API->store.attrlist = 0;
|
|
|
|
+ API->store.count = 0;
|
|
|
|
+ API->store.max = 0;
|
|
|
|
+
|
|
|
|
|
|
|
|
API->MetaHeader.pmh = &(API->PlaceableMetaHeader);
|
|
|
|
API->MetaHeader.wmfheader = &(API->Head);
|
2021-05-11 11:27:51 +00:00
|
|
|
Index: src/extra/gd/gd.c
|
|
|
|
===================================================================
|
|
|
|
--- src/extra/gd/gd.c.orig
|
2007-01-15 23:23:30 +00:00
|
|
|
+++ src/extra/gd/gd.c
|
2021-05-11 11:27:51 +00:00
|
|
|
@@ -810,6 +810,7 @@ gdImageTileApply (gdImagePtr im, int x,
|
2007-01-15 23:23:30 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
+ p = gdImageGetPixel (im->tile, srcx, srcy);
|
|
|
|
/* Allow for transparency */
|
|
|
|
if (p != gdImageGetTransparent (im->tile))
|
|
|
|
{
|
2021-05-11 11:27:51 +00:00
|
|
|
Index: src/extra/gd/gd.h
|
|
|
|
===================================================================
|
|
|
|
--- src/extra/gd/gd.h.orig
|
2007-01-15 23:23:30 +00:00
|
|
|
+++ src/extra/gd/gd.h
|
2021-05-11 11:27:51 +00:00
|
|
|
@@ -22,6 +22,7 @@ extern "C" {
|
2007-01-15 23:23:30 +00:00
|
|
|
|
|
|
|
/* stdio is needed for file I/O. */
|
|
|
|
#include <stdio.h>
|
2021-05-11 11:27:51 +00:00
|
|
|
+#include <string.h>
|
|
|
|
#include <gd_io.h>
|
|
|
|
#include <gd_clip.h>
|
2009-12-16 08:50:33 +00:00
|
|
|
|