Fixed really silly error during the GSList change in xcf.c

Current (still nonfunctional) iscissors code

-Yosh
This commit is contained in:
Manish Singh 1998-01-30 01:24:32 +00:00
parent 7a31553002
commit 4e2056a419
5 changed files with 26 additions and 20 deletions

View File

@ -443,9 +443,9 @@ iscissors_button_press (Tool *tool,
gdisp = (GDisplay *) gdisp_ptr;
iscissors = (Iscissors *) tool->private;
/* message_box ("Intelligent Scissors is currently not enabled\nfor use with the tile-based GIMP",
NULL, NULL);
return;*/
message_box ("Intelligent Scissors is currently not enabled\nfor use with
the tile-based GIMP\non anything but yosh's computer.", NULL, NULL);
return;
gdisplay_untransform_coords (gdisp, bevent->x, bevent->y,
&iscissors->x, &iscissors->y, FALSE, TRUE);
@ -989,7 +989,7 @@ get_kink (Kink *kinks,
return kinks + index;
}
/* I don't think this ever gets called -- Rockwalrus */
/* I don't think it ever gets to this point -- Rockwalrus */
return NULL;
}
@ -1942,6 +1942,8 @@ construct_edge_map (Tool *tool,
srcPR.w = x2 - x;
/* Calculate the offsets into each buffer */
srcPR.x=x;
srcPR.y=y;
srcPR.rowstride = srcPR.bytes * block->width;
srcPR.data = temp_buf_data (block) + offy * srcPR.rowstride + offx * srcPR.bytes;
destPR.data = temp_buf_data (edge_buf) +

View File

@ -443,9 +443,9 @@ iscissors_button_press (Tool *tool,
gdisp = (GDisplay *) gdisp_ptr;
iscissors = (Iscissors *) tool->private;
/* message_box ("Intelligent Scissors is currently not enabled\nfor use with the tile-based GIMP",
NULL, NULL);
return;*/
message_box ("Intelligent Scissors is currently not enabled\nfor use with
the tile-based GIMP\non anything but yosh's computer.", NULL, NULL);
return;
gdisplay_untransform_coords (gdisp, bevent->x, bevent->y,
&iscissors->x, &iscissors->y, FALSE, TRUE);
@ -989,7 +989,7 @@ get_kink (Kink *kinks,
return kinks + index;
}
/* I don't think this ever gets called -- Rockwalrus */
/* I don't think it ever gets to this point -- Rockwalrus */
return NULL;
}
@ -1942,6 +1942,8 @@ construct_edge_map (Tool *tool,
srcPR.w = x2 - x;
/* Calculate the offsets into each buffer */
srcPR.x=x;
srcPR.y=y;
srcPR.rowstride = srcPR.bytes * block->width;
srcPR.data = temp_buf_data (block) + offy * srcPR.rowstride + offx * srcPR.bytes;
destPR.data = temp_buf_data (edge_buf) +

View File

@ -443,9 +443,9 @@ iscissors_button_press (Tool *tool,
gdisp = (GDisplay *) gdisp_ptr;
iscissors = (Iscissors *) tool->private;
/* message_box ("Intelligent Scissors is currently not enabled\nfor use with the tile-based GIMP",
NULL, NULL);
return;*/
message_box ("Intelligent Scissors is currently not enabled\nfor use with
the tile-based GIMP\non anything but yosh's computer.", NULL, NULL);
return;
gdisplay_untransform_coords (gdisp, bevent->x, bevent->y,
&iscissors->x, &iscissors->y, FALSE, TRUE);
@ -989,7 +989,7 @@ get_kink (Kink *kinks,
return kinks + index;
}
/* I don't think this ever gets called -- Rockwalrus */
/* I don't think it ever gets to this point -- Rockwalrus */
return NULL;
}
@ -1942,6 +1942,8 @@ construct_edge_map (Tool *tool,
srcPR.w = x2 - x;
/* Calculate the offsets into each buffer */
srcPR.x=x;
srcPR.y=y;
srcPR.rowstride = srcPR.bytes * block->width;
srcPR.data = temp_buf_data (block) + offy * srcPR.rowstride + offx * srcPR.bytes;
destPR.data = temp_buf_data (edge_buf) +

View File

@ -835,7 +835,7 @@ xcf_save_prop (XcfInfo *info,
int nguides;
guides = va_arg (args, GList*);
nguides = g_slist_length (guides);
nguides = g_list_length (guides);
size = nguides * (4 + 1);

View File

@ -835,7 +835,7 @@ xcf_save_prop (XcfInfo *info,
int nguides;
guides = va_arg (args, GList*);
nguides = g_slist_length (guides);
nguides = g_list_length (guides);
size = nguides * (4 + 1);