This commit is contained in:
Rmys
2021-11-01 08:26:40 +02:00
committed by GitHub
parent 758e1ff38b
commit 44221167ec
2 changed files with 41 additions and 2 deletions
@@ -0,0 +1,26 @@
From bdc281eadb1d58d5c0c7bbc1125ee4674256df08 Mon Sep 17 00:00:00 2001
From: Pierre Joye <pierre.php@gmail.com>
Date: Wed, 25 Aug 2021 15:28:32 +0700
Subject: [PATCH] Fix #318, these macros are not used as planed, we have
separate functions for each
---
src/gd.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/gd.h b/src/gd.h
index 5728a25e..51b96610 100644
--- a/src/gd.h
+++ b/src/gd.h
@@ -1604,11 +1604,6 @@ BGD_DECLARE(void) gdImageFlipHorizontal(gdImagePtr im);
BGD_DECLARE(void) gdImageFlipVertical(gdImagePtr im);
BGD_DECLARE(void) gdImageFlipBoth(gdImagePtr im);
-#define GD_FLIP_HORINZONTAL 1 /* typo, kept for BC */
-#define GD_FLIP_HORIZONTAL 1
-#define GD_FLIP_VERTICAL 2
-#define GD_FLIP_BOTH 3
-
/**
* Group: Crop
*
+15 -2
View File
@@ -15,11 +15,15 @@
<IsA>app:console</IsA>
<Summary>A fast library for creating graphic images</Summary>
<Description>The gd graphics library allows your code to quickly draw images complete with lines, arcs, text, multiple colors, cut and paste from other images, and flood fills, and to write out the result as a PNG or JPEG file. This is particularly useful in Web applications, where PNG and JPEG are two of the formats accepted for inline images by most browsers. Note that gd is not a paint program.</Description>
<Archive sha1sum="be6da7d9d58ff09d5d28f4fc2763aef4f0c3c75f" type="targz">https://github.com/libgd/libgd/releases/download/gd-2.3.2/libgd-2.3.2.tar.gz</Archive>
<Archive sha1sum="a275344fb56161df6a06679bf0bf29c30930d8eb" type="targz">https://github.com/libgd/libgd/releases/download/gd-2.3.3/libgd-2.3.3.tar.gz</Archive>
<AdditionalFiles>
<AdditionalFile target="bdc281eadb1d58d5c0c7bbc1125ee4674256df08.patch">bdc281eadb1d58d5c0c7bbc1125ee4674256df08.patch</AdditionalFile>
</AdditionalFiles>
<BuildDependencies>
<Dependency>tiff-devel</Dependency>
<Dependency>webp-devel</Dependency>
<Dependency>zlib-devel</Dependency>
<Dependency>libheif-devel</Dependency>
<Dependency>libpng-devel</Dependency>
<Dependency>libvpx-devel</Dependency>
<Dependency>freetype-devel</Dependency>
@@ -41,6 +45,7 @@
<Dependency>webp</Dependency>
<Dependency>tiff</Dependency>
<Dependency>zlib</Dependency>
<Dependency>libheif</Dependency>
<Dependency>libpng</Dependency>
<Dependency>libvpx</Dependency>
<Dependency>freetype</Dependency>
@@ -62,6 +67,7 @@
<Dependency>webp-devel</Dependency>
<Dependency>tiff-devel</Dependency>
<Dependency>zlib-devel</Dependency>
<Dependency>libheif-devel</Dependency>
<Dependency>libpng-devel</Dependency>
<Dependency>freetype-devel</Dependency>
<Dependency>fontconfig-devel</Dependency>
@@ -83,6 +89,13 @@
</Package>
<History>
<Update release="8">
<Date>2021-11-01</Date>
<Version>2.3.3</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="7">
<Date>2021-06-14</Date>
<Version>2.3.2</Version>
@@ -133,4 +146,4 @@
<Email>ertugrulerata@gmail.com</Email>
</Update>
</History>
</PISI>
</PISI>