[gimp] Bug 779827 - Brushes in Symmetry Tiling mode are off by one pixel.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 779827 - Brushes in Symmetry Tiling mode are off by one pixel.
- Date: Fri, 10 Mar 2017 03:27:34 +0000 (UTC)
commit 22247339ce0203163f139b161f260eab42f185ef
Author: Jehan <jehan girinstud io>
Date: Fri Mar 10 03:56:57 2017 +0100
Bug 779827 - Brushes in Symmetry Tiling mode are off by one pixel.
Computation for tiled brush position has to be done in integer, not
double, to avoid funky type conversion rounding.
app/core/gimpsymmetry-tiling.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpsymmetry-tiling.c b/app/core/gimpsymmetry-tiling.c
index 44dd7fd..462f5c5 100644
--- a/app/core/gimpsymmetry-tiling.c
+++ b/app/core/gimpsymmetry-tiling.c
@@ -320,11 +320,11 @@ gimp_tiling_update_strokes (GimpSymmetry *sym,
height = gimp_item_get_height (GIMP_ITEM (drawable));
if (origin->x > 0 && tiling->max_x == 0)
- startx = origin->x - tiling->interval_x * (gint) (origin->x / tiling->interval_x + 1);
+ startx -= tiling->interval_x * (gint) (origin->x / tiling->interval_x + 1);
if (origin->y > 0 && tiling->max_y == 0)
{
- starty = origin->y - tiling->interval_y * (gint) (origin->y / tiling->interval_y + 1);
+ starty -= tiling->interval_y * (gint) (origin->y / tiling->interval_y + 1);
if (tiling->shift > 0.0)
startx -= tiling->shift * (gint) (origin->y / tiling->interval_y + 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]