Author: spouliot
Date: 2007-08-31 13:02:09 -0400 (Fri, 31 Aug 2007)
New Revision: 85145
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/media.cpp
trunk/moon/src/panel.cpp
trunk/moon/src/shape.cpp
trunk/moon/src/text.cpp
Log:
2007-08-31 Sebastien Pouliot <[EMAIL PROTECTED]>
* media.cpp, panel.cpp, shape.cpp, text.cpp: Calling GrowBy
doesn't change the current rectangle (but returns a new one).
However everything seems to work, so they are probably not needed.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-08-31 16:47:22 UTC (rev 85144)
+++ trunk/moon/src/ChangeLog 2007-08-31 17:02:09 UTC (rev 85145)
@@ -1,3 +1,9 @@
+2007-08-31 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * media.cpp, panel.cpp, shape.cpp, text.cpp: Calling GrowBy
+ doesn't change the current rectangle (but returns a new one).
+ However everything seems to work, so they are probably not needed.
+
2007-08-31 Jeffrey Stedfast <[EMAIL PROTECTED]>
* text.cpp (OnPropertyChanged): Need to Invalidate() too.
Modified: trunk/moon/src/media.cpp
===================================================================
--- trunk/moon/src/media.cpp 2007-08-31 16:47:22 UTC (rev 85144)
+++ trunk/moon/src/media.cpp 2007-08-31 17:02:09 UTC (rev 85145)
@@ -231,7 +231,7 @@
bounds = bounding_rect_for_transformed_rect (&absolute_xform, Rect (0,
0, w, h));
- bounds.GrowBy (1);
+// no-op bounds.GrowBy (1);
}
Point
@@ -1189,7 +1189,7 @@
framework_element_get_width (this),
framework_element_get_height (this)));
- bounds.GrowBy (1);
+// no-op bounds.GrowBy (1);
}
Point
Modified: trunk/moon/src/panel.cpp
===================================================================
--- trunk/moon/src/panel.cpp 2007-08-31 16:47:22 UTC (rev 85144)
+++ trunk/moon/src/panel.cpp 2007-08-31 17:02:09 UTC (rev 85145)
@@ -134,7 +134,7 @@
/* standard "grow the rectangle by enough to cover our
asses because of cairo's floating point rendering"
thing */
- bounds.GrowBy (1);
+// nop-op bounds.GrowBy (1);
#if DEBUG_BOUNDS
space (levelb);
Modified: trunk/moon/src/shape.cpp
===================================================================
--- trunk/moon/src/shape.cpp 2007-08-31 16:47:22 UTC (rev 85144)
+++ trunk/moon/src/shape.cpp 2007-08-31 17:02:09 UTC (rev 85145)
@@ -368,7 +368,7 @@
/* standard "grow the rectangle by enough to cover our
asses because of cairo's floating point rendering"
thing */
- bounds.GrowBy(1);
+// no-op bounds.GrowBy(1);
}
void
@@ -397,7 +397,7 @@
bounds = Rect (x1, y1, x2-x1, y2-y1);
- bounds.GrowBy (1);
+// no-op bounds.GrowBy (1);
measuring_context_destroy (cr);
}
@@ -1027,7 +1027,7 @@
Rect (MIN(x1,x2),
MIN(y1,y2),
fabs (x2-x1), fabs
(y2-y1)));
- bounds.GrowBy (shape_get_stroke_thickness (this) + 1);
+// no-op bounds.GrowBy (shape_get_stroke_thickness (this) + 1);
#else
Shape::ComputeBounds ();
#endif
Modified: trunk/moon/src/text.cpp
===================================================================
--- trunk/moon/src/text.cpp 2007-08-31 16:47:22 UTC (rev 85144)
+++ trunk/moon/src/text.cpp 2007-08-31 17:02:09 UTC (rev 85145)
@@ -383,7 +383,7 @@
TextBlock::ComputeBounds ()
{
bounds = bounding_rect_for_transformed_rect (&absolute_xform, Rect (0,
0, actual_width, actual_height));
- bounds.GrowBy (1);
+// no-op bounds.GrowBy (1);
}
Point
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches