diff options
author | Sebastian Pipping <sping@gentoo.org> | 2015-08-30 19:03:35 +0200 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2015-08-30 19:04:04 +0200 |
commit | 5bfbf9fe6f1694e26cd91ebbd4a68db6ac4b7096 (patch) | |
tree | 79a84cf43c60b4b3cb5c1fa18b1aff434e06ef7a /media-gfx/gimp/files | |
parent | sys-apps/man-db: amd64 stable wrt bug #559140 (diff) | |
download | gentoo-5bfbf9fe6f1694e26cd91ebbd4a68db6ac4b7096.tar.gz gentoo-5bfbf9fe6f1694e26cd91ebbd4a68db6ac4b7096.tar.bz2 gentoo-5bfbf9fe6f1694e26cd91ebbd4a68db6ac4b7096.zip |
media-gfx/gimp: Apply upstream patch on blending (Gentoo bug #558878)
Diffstat (limited to 'media-gfx/gimp/files')
-rw-r--r-- | media-gfx/gimp/files/gimp-2.8.14-blend-center.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/media-gfx/gimp/files/gimp-2.8.14-blend-center.patch b/media-gfx/gimp/files/gimp-2.8.14-blend-center.patch new file mode 100644 index 000000000000..eba04df59aa2 --- /dev/null +++ b/media-gfx/gimp/files/gimp-2.8.14-blend-center.patch @@ -0,0 +1,30 @@ +From 97e55692ebad5897be334c81c133b6626b9b6920 Mon Sep 17 00:00:00 2001 +From: Michael Natterer <mitch@gimp.org> +Date: Wed, 26 Aug 2015 23:23:16 +0200 +Subject: app: the blend tool was rendering all gradients off-by-0.5 + +When calculating the color of a pixel, we want to calculate the color +at its center, not at its top-left corner. Found by Raymond Jennings. + +EDIT (by Sebastian Pipping <sping@gentoo.org>): + Cut away patch chunk for app/operations/gimpoperationblend.c + since 2.8.14 doesn't seem to have that file. + +diff --git a/app/core/gimpdrawable-blend.c b/app/core/gimpdrawable-blend.c +index af565d1..e4f92a1 100644 +--- a/app/core/gimpdrawable-blend.c ++++ b/app/core/gimpdrawable-blend.c +@@ -628,6 +628,10 @@ gradient_render_pixel (gdouble x, + RenderBlendData *rbd = render_data; + gdouble factor; + ++ /* we want to calculate the color at the pixel's center */ ++ x += 0.5; ++ y += 0.5; ++ + /* Calculate blending factor */ + + switch (rbd->gradient_type) +-- +cgit v0.10.2 + |