summaryrefslogtreecommitdiff
path: root/libraries/agg/patches/0012-Avoid-pixel-artifacts-when-compositing.patch
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2014-07-16 18:00:19 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-08-03 16:34:16 +0700
commite28787e9e05fc37a6b194ebf62ad5bc647190596 (patch)
treead51d84194c2656f61b59428b08fc6b11940e02d /libraries/agg/patches/0012-Avoid-pixel-artifacts-when-compositing.patch
parent6fd855630e6d1862995a200f5a07d9ade9190286 (diff)
downloadslackbuilds-e28787e9e05fc37a6b194ebf62ad5bc647190596.tar.gz
libraries/agg: Added patches from fedora.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/agg/patches/0012-Avoid-pixel-artifacts-when-compositing.patch')
-rw-r--r--libraries/agg/patches/0012-Avoid-pixel-artifacts-when-compositing.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/libraries/agg/patches/0012-Avoid-pixel-artifacts-when-compositing.patch b/libraries/agg/patches/0012-Avoid-pixel-artifacts-when-compositing.patch
new file mode 100644
index 0000000000..b3e641e6f5
--- /dev/null
+++ b/libraries/agg/patches/0012-Avoid-pixel-artifacts-when-compositing.patch
@@ -0,0 +1,26 @@
+From bf0e0b71360cfbc690a29f4abe15d7b9b61b8479 Mon Sep 17 00:00:00 2001
+From: Tom Hughes <tom@compton.nu>
+Date: Sat, 22 Jun 2013 12:11:54 +0100
+Subject: [PATCH 12/15] Avoid pixel artifacts when compositing
+
+Change src_over alpha to avoid pixel artifacts by reordering computations.
+---
+ include/agg_pixfmt_rgba.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/agg_pixfmt_rgba.h b/include/agg_pixfmt_rgba.h
+index 5d6b511..bb255cd 100644
+--- a/include/agg_pixfmt_rgba.h
++++ b/include/agg_pixfmt_rgba.h
+@@ -346,7 +346,7 @@ namespace agg
+ p[Order::R] = (value_type)(sr + ((p[Order::R] * s1a + base_mask) >> base_shift));
+ p[Order::G] = (value_type)(sg + ((p[Order::G] * s1a + base_mask) >> base_shift));
+ p[Order::B] = (value_type)(sb + ((p[Order::B] * s1a + base_mask) >> base_shift));
+- p[Order::A] = (value_type)(sa + p[Order::A] - ((sa * p[Order::A] + base_mask) >> base_shift));
++ p[Order::A] = (value_type)(sa + ((p[Order::A] * s1a + base_mask) >> base_shift));
+ }
+ };
+
+--
+1.8.1.4
+