From c86deaa853a658c330b72a9c6e841d8cdd39c642 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Wed, 7 Dec 2005 21:17:12 +0000 Subject: [PATCH] In fixed mode, paint incremental so the individual brushes are properly 2005-12-07 Michael Natterer * app/paint/gimpclone.c (gimp_clone_motion): In fixed mode, paint incremental so the individual brushes are properly applied on top of each other. Fixes bug #322791. --- ChangeLog | 6 ++++++ app/paint/gimpclone.c | 10 +++++++++- app/paint/gimpsourcecore.c | 10 +++++++++- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 36222be583..e7bfc55bc9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-12-07 Michael Natterer + + * app/paint/gimpclone.c (gimp_clone_motion): In fixed mode, paint + incremental so the individual brushes are properly applied on top + of each other. Fixes bug #322791. + 2005-12-07 Michael Natterer * app/paint/*: use G_DEFINE_TYPE(). diff --git a/app/paint/gimpclone.c b/app/paint/gimpclone.c index 55caf85443..c8110b724b 100644 --- a/app/paint/gimpclone.c +++ b/app/paint/gimpclone.c @@ -384,7 +384,15 @@ gimp_clone_motion (GimpPaintCore *paint_core, gimp_context_get_opacity (context), gimp_context_get_paint_mode (context), gimp_paint_options_get_brush_mode (paint_options), - GIMP_PAINT_CONSTANT); + + /* In fixed mode, paint incremental so the + * individual brushes are properly applied + * on top of each other. + * Otherwise the stuff we paint is seamless + * and we don't need intermediate masking. + */ + options->align_mode == GIMP_CLONE_ALIGN_FIXED ? + GIMP_PAINT_INCREMENTAL : GIMP_PAINT_CONSTANT); } static void diff --git a/app/paint/gimpsourcecore.c b/app/paint/gimpsourcecore.c index 55caf85443..c8110b724b 100644 --- a/app/paint/gimpsourcecore.c +++ b/app/paint/gimpsourcecore.c @@ -384,7 +384,15 @@ gimp_clone_motion (GimpPaintCore *paint_core, gimp_context_get_opacity (context), gimp_context_get_paint_mode (context), gimp_paint_options_get_brush_mode (paint_options), - GIMP_PAINT_CONSTANT); + + /* In fixed mode, paint incremental so the + * individual brushes are properly applied + * on top of each other. + * Otherwise the stuff we paint is seamless + * and we don't need intermediate masking. + */ + options->align_mode == GIMP_CLONE_ALIGN_FIXED ? + GIMP_PAINT_INCREMENTAL : GIMP_PAINT_CONSTANT); } static void