Commit 8cc45bc7 authored by Manish Singh's avatar Manish Singh

fix {get,set}_pixel typo reported by Tamito

KAJIYAMA <kajiyama@grad.sccs.chukyo-u.ac.jp>

-Yosh
parent 2a47f098
Tue Nov 9 11:33:03 PST 1999 Manish Singh <yosh@gimp.org>
* tools/pdbgen/pdb/drawable.pdb: fix {get,set}_pixel typo reported
by Tamito KAJIYAMA <kajiyama@grad.sccs.chukyo-u.ac.jp>
Tue Nov 9 15:08:13 MET 1999 Sven Neumann <sven@gimp.org>
* app/fileops.c:
......
......@@ -332,7 +332,7 @@ drawable_image_invoker (Argument *args)
gboolean success = TRUE;
Argument *return_args;
GimpDrawable *drawable;
GimpImage *gimage;
GimpImage *gimage = NULL;
drawable = gimp_drawable_get_ID (args[0].value.pdb_int);
if (drawable == NULL)
......@@ -1062,7 +1062,7 @@ drawable_get_pixel_invoker (Argument *args)
x %= TILE_WIDTH;
y %= TILE_WIDTH;
p = tile_data_pointer (tile, y, x);
p = tile_data_pointer (tile, x, y);
for (b = 0; b < num_channels; b++)
pixel[b] = p[b];
......@@ -1172,7 +1172,7 @@ drawable_set_pixel_invoker (Argument *args)
x %= TILE_WIDTH;
y %= TILE_WIDTH;
p = tile_data_pointer (tile, y, x);
p = tile_data_pointer (tile, x, y);
for (b = 0; b < num_channels; b++)
*p++ = *pixel++;
......
......@@ -212,6 +212,7 @@ sub drawable_image {
@outargs = ( &std_image_arg );
$outargs[0]->{desc} = "The drawable's image";
$outargs[0]->{init} = 1;
delete $inargs[0]->{no_success};
......@@ -356,7 +357,7 @@ HELP
x %= TILE_WIDTH;
y %= TILE_WIDTH;
p = tile_data_pointer (tile, y, x);
p = tile_data_pointer (tile, x, y);
for (b = 0; b < num_channels; b++)
pixel[b] = p[b];
......@@ -397,7 +398,7 @@ HELP
x %= TILE_WIDTH;
y %= TILE_WIDTH;
p = tile_data_pointer (tile, y, x);
p = tile_data_pointer (tile, x, y);
for (b = 0; b < num_channels; b++)
*p++ = *pixel++;
......
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