Author: alanmc
Date: 2007-07-20 12:07:44 -0400 (Fri, 20 Jul 2007)
New Revision: 82364

Modified:
   trunk/lunareclipse/ChangeLog
   trunk/lunareclipse/Model/Draw/SelectionDraw.cs
Log:
Added a comment explaining the need for the crazy math

Modified: trunk/lunareclipse/ChangeLog
===================================================================
--- trunk/lunareclipse/ChangeLog        2007-07-20 16:06:13 UTC (rev 82363)
+++ trunk/lunareclipse/ChangeLog        2007-07-20 16:07:44 UTC (rev 82364)
@@ -1,5 +1,9 @@
 2007-07-20  Alan McGovern <[EMAIL PROTECTED]> 
 
+       Added a comment explaining the need for the crazy math
+
+2007-07-20  Alan McGovern <[EMAIL PROTECTED]> 
+
        Refactored the code to be much shorter
 
 2007-07-20  Alan McGovern <[EMAIL PROTECTED]> 

Modified: trunk/lunareclipse/Model/Draw/SelectionDraw.cs
===================================================================
--- trunk/lunareclipse/Model/Draw/SelectionDraw.cs      2007-07-20 16:06:13 UTC 
(rev 82363)
+++ trunk/lunareclipse/Model/Draw/SelectionDraw.cs      2007-07-20 16:07:44 UTC 
(rev 82364)
@@ -369,7 +369,8 @@
                        offset = new Point(mouseDistanceTravelled * 
Math.Cos(mouseAngle - Converter.DegreesToRadians(angle)),
                                           mouseDistanceTravelled * 
Math.Sin(mouseAngle - Converter.DegreesToRadians(angle)));
                        
-                       // Change the width
+                       // When resizing shapes, we need to do some crazy maths 
to make sure
+                       // that when we resize, the shape doesn't 'float' 
around the canvas.
                        if(b.Handle == b.WidthHandle1)
             {
                 if((oldWidth + offset.X) >= 0)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to