aboutsummaryrefslogtreecommitdiffstats
path: root/testing/agg/0003-Get-coordinates-from-previous-vertex-if-last-command.patch
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-06-13 08:58:03 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-06-13 15:40:57 -0300
commitdd0e14603b9ed5f72db1791c1e9e3d67be1df266 (patch)
tree7b57006647a40a445037f705203a2a10453653e6 /testing/agg/0003-Get-coordinates-from-previous-vertex-if-last-command.patch
parenta33cf7235864a327ab6c72fd9d2bb89528177365 (diff)
downloadaports-dd0e14603b9ed5f72db1791c1e9e3d67be1df266.tar.bz2
aports-dd0e14603b9ed5f72db1791c1e9e3d67be1df266.tar.xz
testing/agg: fix build, import patches from Arch Linux
Diffstat (limited to 'testing/agg/0003-Get-coordinates-from-previous-vertex-if-last-command.patch')
-rw-r--r--testing/agg/0003-Get-coordinates-from-previous-vertex-if-last-command.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/agg/0003-Get-coordinates-from-previous-vertex-if-last-command.patch b/testing/agg/0003-Get-coordinates-from-previous-vertex-if-last-command.patch
new file mode 100644
index 0000000000..b12684d18d
--- /dev/null
+++ b/testing/agg/0003-Get-coordinates-from-previous-vertex-if-last-command.patch
@@ -0,0 +1,30 @@
+From 032d5342430f4c5dfbc34a2817d67386a14fd51b Mon Sep 17 00:00:00 2001
+From: Tom Hughes <tom@compton.nu>
+Date: Sun, 19 May 2013 11:40:49 +0100
+Subject: [PATCH 03/15] Get coordinates from previous vertex if last command is
+ path_cmd_end_poly
+
+---
+ include/agg_path_storage.h | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/include/agg_path_storage.h b/include/agg_path_storage.h
+index 7be7393..8922fc8 100644
+--- a/include/agg_path_storage.h
++++ b/include/agg_path_storage.h
+@@ -878,6 +878,12 @@ namespace agg
+ *x += x2;
+ *y += y2;
+ }
++ else if (!is_stop(m_vertices.last_command()) &&
++ is_vertex(m_vertices.prev_vertex(&x2, &y2)))
++ {
++ *x += x2;
++ *y += y2;
++ }
+ }
+ }
+
+--
+1.8.1.4
+