Commit 4ab7e091 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

use copy_region() instead of using tile_manager_map_over_tile() directly.

2005-04-29  Sven Neumann  <sven@gimp.org>

	* app/core/gimpprojection-construct.c (gimp_projection_construct):
	use copy_region() instead of using tile_manager_map_over_tile()
	directly.
parent 2eba891d
2005-04-29 Sven Neumann <sven@gimp.org>
* app/core/gimpprojection-construct.c (gimp_projection_construct):
use copy_region() instead of using tile_manager_map_over_tile()
directly.
2005-04-29 Sven Neumann <sven@gimp.org>
* app/widgets/gimpmessagebox.c (gimp_message_box_init): unset
......
......@@ -117,22 +117,15 @@ gimp_projection_construct (GimpProjection *proj,
if (xoff == 0 && yoff == 0)
{
PixelRegion srcPR, destPR;
gpointer pr;
g_printerr ("Can use cow-projection hack. Yay!");
g_printerr ("cow-projection!");
pixel_region_init (&srcPR, gimp_drawable_data (layer),
x, y, w,h, FALSE);
pixel_region_init (&destPR, gimp_projection_get_tiles (proj),
x, y, w,h, TRUE);
for (pr = pixel_regions_register (2, &srcPR, &destPR);
pr != NULL;
pr = pixel_regions_process (pr))
{
tile_manager_map_over_tile (destPR.tiles,
destPR.curtile, srcPR.curtile);
}
copy_region (&srcPR, &destPR);
proj->construct_flag = TRUE;
......@@ -146,7 +139,6 @@ gimp_projection_construct (GimpProjection *proj,
proj->construct_flag = FALSE;
/* First, determine if the projection image needs to be
* initialized--this is the case when there are no visible
* layers that cover the entire canvas--either because layers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment