1 |
commit: 6fa22c5a66480b8ba93225e2da9bd7e51c7c5aad |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 1 06:49:39 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 1 06:49:39 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fa22c5a |
7 |
|
8 |
x11-libs/agg: Really commit gcc8 patch (#667376) |
9 |
|
10 |
Closes: https://bugs.gentoo.org/667376 |
11 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
13 |
|
14 |
x11-libs/agg/files/agg-2.5-gcc8.patch | 34 +++++++++++----------------------- |
15 |
1 file changed, 11 insertions(+), 23 deletions(-) |
16 |
|
17 |
diff --git a/x11-libs/agg/files/agg-2.5-gcc8.patch b/x11-libs/agg/files/agg-2.5-gcc8.patch |
18 |
index 6214bd62e3a..2e43d0bf79b 100644 |
19 |
--- a/x11-libs/agg/files/agg-2.5-gcc8.patch |
20 |
+++ b/x11-libs/agg/files/agg-2.5-gcc8.patch |
21 |
@@ -1,24 +1,12 @@ |
22 |
-From ca818d4dcd428c5560fc3c341fbaf427a7485e32 Mon Sep 17 00:00:00 2001 |
23 |
-From: Tom Hughes <tom@×××××××.nu> |
24 |
-Date: Sat, 22 Jun 2013 12:34:37 +0100 |
25 |
-Subject: [PATCH 15/15] Ensure first value in the gamma table is always zero |
26 |
- |
27 |
---- |
28 |
- include/agg_gamma_functions.h | 1 + |
29 |
- 1 file changed, 1 insertion(+) |
30 |
- |
31 |
-diff --git a/include/agg_gamma_functions.h b/include/agg_gamma_functions.h |
32 |
-index beb0c04..b8eda52 100644 |
33 |
---- a/include/agg_gamma_functions.h |
34 |
-+++ b/include/agg_gamma_functions.h |
35 |
-@@ -49,6 +49,7 @@ namespace agg |
36 |
+diff -uprN agg-2.5/include/agg_renderer_outline_aa.h agg-2.5-fixed/include/agg_renderer_outline_aa.h |
37 |
+--- agg-2.5/include/agg_renderer_outline_aa.h 2018-08-25 02:02:52.507254241 +0800 |
38 |
++++ agg-2.5-fixed/include/agg_renderer_outline_aa.h 2018-08-25 02:04:15.291175316 +0800 |
39 |
+@@ -1375,7 +1375,7 @@ namespace agg |
40 |
+ //--------------------------------------------------------------------- |
41 |
+ void profile(const line_profile_aa& prof) { m_profile = &prof; } |
42 |
+ const line_profile_aa& profile() const { return *m_profile; } |
43 |
+- line_profile_aa& profile() { return *m_profile; } |
44 |
++ const line_profile_aa& profile() { return *m_profile; } |
45 |
|
46 |
- double operator() (double x) const |
47 |
- { |
48 |
-+ if (x == 0.0) return 0.0; |
49 |
- return pow(x, m_gamma); |
50 |
- } |
51 |
- |
52 |
--- |
53 |
-1.8.1.4 |
54 |
- |
55 |
+ //--------------------------------------------------------------------- |
56 |
+ int subpixel_width() const { return m_profile->subpixel_width(); } |