From e9e556b8ce948eb83d49badf3c1e89384675ce51 Mon Sep 17 00:00:00 2001 From: Sergei Reznikov Date: Wed, 3 Jul 2019 23:47:51 +0300 Subject: [PATCH] WonderBrush: add patchset --- .../patches/wonderbrush-2.1.2.patchset | 26 +++++++++++++++++++ .../wonderbrush/wonderbrush-2.1.2.recipe | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 haiku-apps/wonderbrush/patches/wonderbrush-2.1.2.patchset diff --git a/haiku-apps/wonderbrush/patches/wonderbrush-2.1.2.patchset b/haiku-apps/wonderbrush/patches/wonderbrush-2.1.2.patchset new file mode 100644 index 000000000..898eaad2a --- /dev/null +++ b/haiku-apps/wonderbrush/patches/wonderbrush-2.1.2.patchset @@ -0,0 +1,26 @@ +From 1e66e0ad302aefc29e41d8635bf3773213c365db Mon Sep 17 00:00:00 2001 +From: Jonathan Schleifer +Date: Thu, 19 Dec 2013 01:45:04 +0100 +Subject: Fix the agg headers to be proper C++. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Axel Dörfler + +diff --git a/third_party/agg/include/agg_renderer_outline_aa.h b/third_party/agg/include/agg_renderer_outline_aa.h +index 58af906..e891a17 100644 +--- a/third_party/agg/include/agg_renderer_outline_aa.h ++++ b/third_party/agg/include/agg_renderer_outline_aa.h +@@ -1371,7 +1371,7 @@ namespace agg + //--------------------------------------------------------------------- + void profile(const line_profile_aa& prof) { m_profile = &prof; } + const line_profile_aa& profile() const { return *m_profile; } +- line_profile_aa& profile() { return *m_profile; } ++ line_profile_aa& profile() { return *(line_profile_aa*)m_profile; } + + //--------------------------------------------------------------------- + int subpixel_width() const { return m_profile->subpixel_width(); } +-- +2.21.0 + diff --git a/haiku-apps/wonderbrush/wonderbrush-2.1.2.recipe b/haiku-apps/wonderbrush/wonderbrush-2.1.2.recipe index 781b257bb..665c3ed63 100644 --- a/haiku-apps/wonderbrush/wonderbrush-2.1.2.recipe +++ b/haiku-apps/wonderbrush/wonderbrush-2.1.2.recipe @@ -20,7 +20,7 @@ not actually destroy any pixel data." HOMEPAGE="http://yellowbites.com/wonderbrush.html" COPYRIGHT="2005-2019, Stephan Aßmus und Ingo Weinhold GbR" LICENSE="WonderBrush" -REVISION="6" +REVISION="7" srcGitRev="0313cf0421fa8a576471b83f0ebef7026f5b1fa0" SOURCE_URI="https://github.com/stippi/WonderBrush-v2/archive/$srcGitRev.tar.gz" CHECKSUM_SHA256="961316483e129143172bc3f5fa58fa3e08e44d24ce7390939aab30a64dfb6051"