gimp r25498 - in trunk: . app/tools



Author: neo
Date: Fri Apr 18 21:05:29 2008
New Revision: 25498
URL: http://svn.gnome.org/viewvc/gimp?rev=25498&view=rev

Log:
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.



Modified:
   trunk/ChangeLog
   trunk/app/tools/gimpblendtool.c

Modified: trunk/app/tools/gimpblendtool.c
==============================================================================
--- trunk/app/tools/gimpblendtool.c	(original)
+++ trunk/app/tools/gimpblendtool.c	Fri Apr 18 21:05:29 2008
@@ -22,7 +22,6 @@
 
 #include <gtk/gtk.h>
 
-#include "libgimpmath/gimpmath.h"
 #include "libgimpwidgets/gimpwidgets.h"
 
 #include "tools-types.h"
@@ -360,8 +359,8 @@
   /*  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 @@
   /*  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 @@
 
   /*  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);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]