gimp r25062 - in trunk: . app/tools



Author: martinn
Date: Sat Mar  8 13:14:32 2008
New Revision: 25062
URL: http://svn.gnome.org/viewvc/gimp?rev=25062&view=rev

Log:
2008-03-08  Martin Nordholts  <martinn svn gnome org>

	* app/tools/gimprectangletool.c: Added TODO on how to improve the
	code by changing the way the rectangle is represented internally.


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

Modified: trunk/app/tools/gimprectangletool.c
==============================================================================
--- trunk/app/tools/gimprectangletool.c	(original)
+++ trunk/app/tools/gimprectangletool.c	Sat Mar  8 13:14:32 2008
@@ -139,6 +139,12 @@
    * rectangle), but that will be the case if we always calculate the
    * integer coordinates based on rounded values of the gdouble
    * coordinates even if the gdouble width remains constant.
+   *
+   * TODO: Change the internal double-representation of the rectangle
+   * to x,y width,height instead of x1,y1 x2,y2. That way we don't
+   * need to keep a separate representation of the integer version of
+   * the rectangle; rounding width an height will yield consistant
+   * results and not depend on position of the rectangle.
    */
   gint                    x1_int,    y1_int;
   gint                    width_int, height_int;



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