don't draw the handles on pixel centers, we don't blend between pixel

2008-04-18  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpblendtool.c (gimp_blend_tool_draw): don't draw 
the
	handles on pixel centers, we don't blend between pixel centers.


svn path=/trunk/; revision=25498
This commit is contained in:
Sven Neumann 2008-04-18 21:05:29 +00:00 committed by Sven Neumann
parent 7aa177fa01
commit 83226c8ae5
2 changed files with 13 additions and 9 deletions

View file

@ -1,3 +1,8 @@
2008-04-18 Sven Neumann <sven@gimp.org>
* app/tools/gimpblendtool.c (gimp_blend_tool_draw): don't draw the
handles on pixel centers, we don't blend between pixel centers.
2008-04-17 Michael Natterer <mitch@gimp.org>
Add some infrastructure that will be used soon:

View file

@ -22,7 +22,6 @@
#include <gtk/gtk.h>
#include "libgimpmath/gimpmath.h"
#include "libgimpwidgets/gimpwidgets.h"
#include "tools-types.h"
@ -360,8 +359,8 @@ gimp_blend_tool_draw (GimpDrawTool *draw_tool)
/* Draw start target */
gimp_draw_tool_draw_handle (draw_tool,
GIMP_HANDLE_CROSS,
floor (blend_tool->start_x) + 0.5,
floor (blend_tool->start_y) + 0.5,
blend_tool->start_x,
blend_tool->start_y,
TARGET_SIZE,
TARGET_SIZE,
GTK_ANCHOR_CENTER,
@ -370,8 +369,8 @@ gimp_blend_tool_draw (GimpDrawTool *draw_tool)
/* Draw end target */
gimp_draw_tool_draw_handle (draw_tool,
GIMP_HANDLE_CROSS,
floor (blend_tool->end_x) + 0.5,
floor (blend_tool->end_y) + 0.5,
blend_tool->end_x,
blend_tool->end_y,
TARGET_SIZE,
TARGET_SIZE,
GTK_ANCHOR_CENTER,
@ -379,10 +378,10 @@ gimp_blend_tool_draw (GimpDrawTool *draw_tool)
/* Draw the line between the start and end coords */
gimp_draw_tool_draw_line (draw_tool,
floor (blend_tool->start_x) + 0.5,
floor (blend_tool->start_y) + 0.5,
floor (blend_tool->end_x) + 0.5,
floor (blend_tool->end_y) + 0.5,
blend_tool->start_x,
blend_tool->start_y,
blend_tool->end_x,
blend_tool->end_y,
FALSE);
}