Author: toshok
Date: 2008-02-05 14:28:29 -0500 (Tue, 05 Feb 2008)
New Revision: 94931
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/uielement.cpp
Log:
2008-02-05 Chris Toshok <[EMAIL PROTECTED]>
* uielement.cpp (UIElement::FrontToBack): enable the rectangle
code, and make sure to round in the bounds we're subtracting.
this was causing the flashing white border on silverlight.net/fox.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2008-02-05 19:26:45 UTC (rev 94930)
+++ trunk/moon/src/ChangeLog 2008-02-05 19:28:29 UTC (rev 94931)
@@ -1,3 +1,9 @@
+2008-02-05 Chris Toshok <[EMAIL PROTECTED]>
+
+ * uielement.cpp (UIElement::FrontToBack): enable the rectangle
+ code, and make sure to round in the bounds we're subtracting.
+ this was causing the flashing white border on silverlight.net/fox.
+
2008-02-05 Sebastien Pouliot <[EMAIL PROTECTED]>
* shape.cpp: Use existing MIN macro. Use local variables when
Modified: trunk/moon/src/uielement.cpp
===================================================================
--- trunk/moon/src/uielement.cpp 2008-02-05 19:26:45 UTC (rev 94930)
+++ trunk/moon/src/uielement.cpp 2008-02-05 19:28:29 UTC (rev 94931)
@@ -540,7 +540,6 @@
(media_base_get_stretch (image)
== StretchFill
|| media_base_get_stretch
(image) == StretchUniformToFill)));
}
-#if notyet
else if (Is (Type::RECTANGLE)) {
// if we're going to subtract anything we'll
// do it in here, so set this to false so that
@@ -570,7 +569,6 @@
delete inner_rect_region;
}
}
-#endif
// XXX more stuff here for non-panel subclasses...
else {
subtract = false;
@@ -578,7 +576,7 @@
}
if (subtract)
- surface_region->Subtract (bounds);
+ surface_region->Subtract (bounds.RoundIn());
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches