Commit dc652db2 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

app/tools/gimpcurvestool.c app/tools/gimpinktool.c print debug output to

2004-03-12  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpcurvestool.c
	* app/tools/gimpinktool.c
	* app/tools/gimptool.c: print debug output to stderr.
parent 867e37ae
2004-03-12 Sven Neumann <sven@gimp.org>
* app/tools/gimpcurvestool.c
* app/tools/gimpinktool.c
* app/tools/gimptool.c: print debug output to stderr.
2004-03-12 Simon Budig <simon@gimp.org>
* libgimp/gimppixelfetcher.c: fixed off-by-one error
......@@ -512,7 +512,7 @@ ink_pen_ellipse (GimpInkOptions *options,
velocity = 3.0;
#ifdef VERBOSE
g_print ("%f (%f) -> ", (float)size, (float)velocity);
g_printerr ("%g (%g) -> ", size, velocity);
#endif
size = (options->vel_sensitivity *
......@@ -520,7 +520,7 @@ ink_pen_ellipse (GimpInkOptions *options,
+ (1.0 - options->vel_sensitivity) * size);
#ifdef VERBOSE
g_print ("%f\n", (float)size);
g_printerr ("%g\n", (gfloat) size);
#endif
/* Clamp resulting size to sane limits */
......@@ -547,8 +547,9 @@ ink_pen_ellipse (GimpInkOptions *options,
ytilt * tscale_c + xtilt * tscale_s);
#ifdef VERBOSE
g_print ("angle %g aspect %g; %g %g; %g %g\n",
options->blob_angle, options->blob_aspect, tscale_c, tscale_s, x, y);
g_printerr ("angle %g aspect %g; %g %g; %g %g\n",
options->blob_angle, options->blob_aspect,
tscale_c, tscale_s, x, y);
#endif
aspect = sqrt (x*x + y*y);
......
......@@ -675,7 +675,8 @@ gimp_curves_tool_settings_load (GimpImageMapTool *image_map_tool,
fields = fscanf (file, "%d %d ", &index[i][j], &value[i][j]);
if (fields != 2)
{
g_print ("fields != 2");
/* FIXME: should have a helpful error message here */
g_printerr ("fields != 2");
return FALSE;
}
}
......
......@@ -512,7 +512,7 @@ ink_pen_ellipse (GimpInkOptions *options,
velocity = 3.0;
#ifdef VERBOSE
g_print ("%f (%f) -> ", (float)size, (float)velocity);
g_printerr ("%g (%g) -> ", size, velocity);
#endif
size = (options->vel_sensitivity *
......@@ -520,7 +520,7 @@ ink_pen_ellipse (GimpInkOptions *options,
+ (1.0 - options->vel_sensitivity) * size);
#ifdef VERBOSE
g_print ("%f\n", (float)size);
g_printerr ("%g\n", (gfloat) size);
#endif
/* Clamp resulting size to sane limits */
......@@ -547,8 +547,9 @@ ink_pen_ellipse (GimpInkOptions *options,
ytilt * tscale_c + xtilt * tscale_s);
#ifdef VERBOSE
g_print ("angle %g aspect %g; %g %g; %g %g\n",
options->blob_angle, options->blob_aspect, tscale_c, tscale_s, x, y);
g_printerr ("angle %g aspect %g; %g %g; %g %g\n",
options->blob_angle, options->blob_aspect,
tscale_c, tscale_s, x, y);
#endif
aspect = sqrt (x*x + y*y);
......
......@@ -426,8 +426,8 @@ gimp_tool_set_focus_display (GimpTool *tool,
g_return_if_fail (gdisp == NULL || GIMP_IS_DISPLAY (gdisp));
#ifdef DEBUG_FOCUS
g_print ("gimp_tool_set_focus_display: gdisp: %p focus_display: %p\n",
gdisp, tool->focus_display);
g_printerr ("gimp_tool_set_focus_display: gdisp: %p focus_display: %p\n",
gdisp, tool->focus_display);
#endif
if (gdisp != tool->focus_display)
......@@ -477,8 +477,8 @@ gimp_tool_set_modifier_state (GimpTool *tool,
g_return_if_fail (GIMP_IS_DISPLAY (gdisp));
#ifdef DEBUG_FOCUS
g_print ("gimp_tool_set_modifier_state: gdisp: %p focus_display: %p\n",
gdisp, tool->focus_display);
g_printerr ("gimp_tool_set_modifier_state: gdisp: %p focus_display: %p\n",
gdisp, tool->focus_display);
#endif
g_return_if_fail (gdisp == tool->focus_display);
......
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