diff --git a/gd-2.0.35-AALineThick.patch b/gd-2.0.35-AALineThick.patch index 9d4fd66..4349ada 100644 --- a/gd-2.0.35-AALineThick.patch +++ b/gd-2.0.35-AALineThick.patch @@ -1,5 +1,6 @@ ---- gd-2.0.35/gd.c.pom 2007-06-19 22:25:51.000000000 +0200 -+++ gd-2.0.35/gd.c 2007-09-05 11:25:16.000000000 +0200 +diff -up gd-2.0.35/gd.c.AALineThick gd-2.0.35/gd.c +--- gd-2.0.35/gd.c.AALineThick 2007-06-19 22:25:51.000000000 +0200 ++++ gd-2.0.35/gd.c 2012-02-28 11:02:09.708015922 +0100 @@ -3474,6 +3474,8 @@ static void gdImageAALine (gdImagePtr im /* keep them as 32bits */ long x, y, inc; @@ -15,13 +16,13 @@ } + else { + double ag; -+ if (dy < dx) ++ if (abs(dy) < abs(dx)) + ag = cos (atan2 (dy, dx)); + else + ag = sin (atan2 (dy, dx)); + if (ag != 0) + { -+ wid = thick / ag; ++ wid = abs(thick / ag); + } + else + { diff --git a/gd.spec b/gd.spec index 94396a3..bce9696 100644 --- a/gd.spec +++ b/gd.spec @@ -1,7 +1,7 @@ Summary: A graphics library for quick creation of PNG or JPEG images Name: gd Version: 2.0.35 -Release: 13%{?dist} +Release: 14%{?dist} Group: System Environment/Libraries License: MIT URL: http://www.libgd.org/Main_Page @@ -99,6 +99,10 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/pkgconfig/gdlib.pc %changelog +* Tue Feb 28 2012 Honza Horak - 2.0.35-14 +- Fixed AALineThick.patch to display vertical lines correctly + Resolves: #798255 + * Wed Oct 26 2011 Fedora Release Engineering - 2.0.35-13 - Rebuilt for glibc bug#747377