summaryrefslogtreecommitdiff
path: root/Build/source/libs/gd/libgd-2.1.0-rc1-PATCHES/patch-01-win32
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/gd/libgd-2.1.0-rc1-PATCHES/patch-01-win32')
-rw-r--r--Build/source/libs/gd/libgd-2.1.0-rc1-PATCHES/patch-01-win3220
1 files changed, 20 insertions, 0 deletions
diff --git a/Build/source/libs/gd/libgd-2.1.0-rc1-PATCHES/patch-01-win32 b/Build/source/libs/gd/libgd-2.1.0-rc1-PATCHES/patch-01-win32
new file mode 100644
index 00000000000..51d9b4dc2f3
--- /dev/null
+++ b/Build/source/libs/gd/libgd-2.1.0-rc1-PATCHES/patch-01-win32
@@ -0,0 +1,20 @@
+diff -ur libgd-2.1.0-rc1.orig/src/gdft.c libgd-2.1.0-rc1/src/gdft.c
+--- libgd-2.1.0-rc1.orig/src/gdft.c 2013-05-20 21:10:28.000000000 +0200
++++ libgd-2.1.0-rc1/src/gdft.c 2013-06-02 15:06:12.000000000 +0200
+@@ -1512,6 +1512,16 @@
+ */
+ *fontpath = NULL;
+ fontsearchpath = getenv ("GDFONTPATH");
++#ifdef _WIN32
++ if (!fontsearchpath) {
++ char *ffptr = getenv ("SYSTEMROOT");
++ if (ffptr) {
++ fontsearchpath = malloc (strlen(ffptr) + strlen("\\fonts") + 1);
++ strcpy(fontsearchpath, ffptr);
++ strcat(fontsearchpath, "\\fonts");
++ }
++ }
++#endif
+ if (!fontsearchpath)
+ fontsearchpath = DEFAULT_FONTPATH;
+