Author: lewing
Date: 2008-02-07 14:27:10 -0500 (Thu, 07 Feb 2008)
New Revision: 95182

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/shape.cpp
   trunk/moon/src/shape.h
Log:
Fix last commit


Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2008-02-07 19:23:30 UTC (rev 95181)
+++ trunk/moon/src/ChangeLog    2008-02-07 19:27:10 UTC (rev 95182)
@@ -1,7 +1,7 @@
 2008-02-07  Larry Ewing  <[EMAIL PROTECTED]>
 
        * shape.cpp: cache the results of CompouteShapeBounds in
-       shape_bounds rect, use that value in GetSizeForBrush.
+       extents rect, use that value in GetSizeForBrush.
 
 2008-02-07  Jeffrey Stedfast  <[EMAIL PROTECTED]>
 

Modified: trunk/moon/src/shape.cpp
===================================================================
--- trunk/moon/src/shape.cpp    2008-02-07 19:23:30 UTC (rev 95181)
+++ trunk/moon/src/shape.cpp    2008-02-07 19:27:10 UTC (rev 95182)
@@ -319,9 +319,9 @@
 void
 Shape::ComputeBounds ()
 {
-       hape_bounds = ComputeShapeBounds ();
+       extents = ComputeShapeBounds ();
        bounds = bounding_rect_for_transformed_rect (&absolute_xform,
-                      IntersectBoundsWithClipPath (shape_bounds, false));
+                      IntersectBoundsWithClipPath (extents, false));
        //printf ("%f,%f,%f,%f\n", bounds.x, bounds.y, bounds.w, bounds.h);
 }
 
@@ -363,8 +363,8 @@
 void
 Shape::GetSizeForBrush (cairo_t *cr, double *width, double *height)
 {
-       *height = shape_bounds.h;
-       *width = shape_bounds.w;
+       *height = extents.h;
+       *width = extents.w;
 }
 
 bool

Modified: trunk/moon/src/shape.h
===================================================================
--- trunk/moon/src/shape.h      2008-02-07 19:23:30 UTC (rev 95181)
+++ trunk/moon/src/shape.h      2008-02-07 19:27:10 UTC (rev 95182)
@@ -53,7 +53,7 @@
        virtual Rect ComputeShapeBounds ();
        virtual Rect ComputeLargestRectangle ();
        
-       Rect shape_bounds;
+       Rect extents;
  public: 
        static DependencyProperty* FillProperty;
        static DependencyProperty* StretchProperty;

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

Reply via email to