From c94f85b345df7e4700b79c7a4a9022a56784a408 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 18 Feb 2004 18:54:33 +0000 Subject: [PATCH] tile-cache.c tile-private.h removed trailing whitespace, added some 2004-02-18 Sven Neumann * tile-cache.c * tile-private.h * tile.[ch]: removed trailing whitespace, added some newlines, let tile_is_valid() return a gboolean instead of a gint. * app/core/gimpimage-projection.c * app/core/gimpimage-undo-push.c * app/paint/gimppaintcore.c * app/tools/gimpinktool.c: use the return value from tile_is_valid() as a boolean. --- ChangeLog | 13 +++++++++++++ app/core/gimpimage-projection.c | 2 +- app/core/gimpimage-undo-push.c | 2 +- app/core/gimpprojection-construct.c | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8f66327496..f2ec49cf58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,19 @@ of a straight line to the center of an image-pixel unless the brush mode is GIMP_BRUSH_HARD. Fixes bug #134410. +2004-02-18 Sven Neumann + + * tile-cache.c + * tile-private.h + * tile.[ch]: removed trailing whitespace, added some newlines, + let tile_is_valid() return a gboolean instead of a gint. + + * app/core/gimpimage-projection.c + * app/core/gimpimage-undo-push.c + * app/paint/gimppaintcore.c + * app/tools/gimpinktool.c: use the return value from tile_is_valid() + as a boolean. + 2004-02-18 Sven Neumann * app/base/tile.h: exchanged TILEROWHINT_UNKNOWN and diff --git a/app/core/gimpimage-projection.c b/app/core/gimpimage-projection.c index 4899ea59d0..e43923a45f 100644 --- a/app/core/gimpimage-projection.c +++ b/app/core/gimpimage-projection.c @@ -282,7 +282,7 @@ gimp_image_invalidate (GimpImage *gimage, /* If the tile is not valid, make sure we get the entire tile * in the construction extents */ - if (tile_is_valid (tile) == FALSE) + if (! tile_is_valid (tile)) { tilex = j - (j % TILE_WIDTH); tiley = i - (i % TILE_HEIGHT); diff --git a/app/core/gimpimage-undo-push.c b/app/core/gimpimage-undo-push.c index c1bfeb58bd..02273b3ccf 100644 --- a/app/core/gimpimage-undo-push.c +++ b/app/core/gimpimage-undo-push.c @@ -257,7 +257,7 @@ undo_pop_image (GimpUndo *undo, { src_tile = tile_manager_get_tile (tiles, j, i, FALSE, FALSE); - if (tile_is_valid (src_tile) == TRUE) + if (tile_is_valid (src_tile)) { /* swap tiles, not pixels! */ diff --git a/app/core/gimpprojection-construct.c b/app/core/gimpprojection-construct.c index 4899ea59d0..e43923a45f 100644 --- a/app/core/gimpprojection-construct.c +++ b/app/core/gimpprojection-construct.c @@ -282,7 +282,7 @@ gimp_image_invalidate (GimpImage *gimage, /* If the tile is not valid, make sure we get the entire tile * in the construction extents */ - if (tile_is_valid (tile) == FALSE) + if (! tile_is_valid (tile)) { tilex = j - (j % TILE_WIDTH); tiley = i - (i % TILE_HEIGHT);