2004-05-04  Michael Natterer  <mitch@gimp.org>

	Fix bug #141719:

	* app/tools/gimpmovetool.c (gimp_move_tool_motion): use RINT()
	instead of ROUND() to round double coords to guide positions.

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_tool_events): pass RINT()-rounded
	coords to gimp_display_shell_update_cursor() instead of implicitly
	truncating by casting to int.
This commit is contained in:
Michael Natterer 2004-05-04 13:09:39 +00:00 committed by Michael Natterer
parent eb152e218c
commit 29e4cf347b
3 changed files with 18 additions and 6 deletions

View File

@ -1,3 +1,15 @@
2004-05-04 Michael Natterer <mitch@gimp.org>
Fix bug #141719:
* app/tools/gimpmovetool.c (gimp_move_tool_motion): use RINT()
instead of ROUND() to round double coords to guide positions.
* app/display/gimpdisplayshell-callbacks.c
(gimp_display_shell_canvas_tool_events): pass RINT()-rounded
coords to gimp_display_shell_update_cursor() instead of implicitly
truncating by casting to int.
2004-05-04 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpundoeditor.c: removed code duplication by adding

View File

@ -1282,10 +1282,10 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
if (update_cursor)
{
gimp_display_shell_update_cursor (shell,
display_coords.x,
display_coords.y,
image_coords.x,
image_coords.y);
RINT (display_coords.x),
RINT (display_coords.y),
RINT (image_coords.x),
RINT (image_coords.y));
}
return return_val;

View File

@ -480,9 +480,9 @@ gimp_move_tool_motion (GimpTool *tool,
else
{
if (move->guide_orientation == GIMP_ORIENTATION_HORIZONTAL)
move->guide_position = ROUND (coords->y);
move->guide_position = RINT (coords->y);
else
move->guide_position = ROUND (coords->x);
move->guide_position = RINT (coords->x);
}
gimp_draw_tool_resume (GIMP_DRAW_TOOL (tool));