Author: spouliot
Date: 2007-08-30 14:24:28 -0400 (Thu, 30 Aug 2007)
New Revision: 85064
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/shape.cpp
Log:
2007-08-30 Sebastien Pouliot <[EMAIL PROTECTED]>
* shape.cpp: In some degenerate cases Radius[X|Y] can be ignored
for rectangles.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-08-30 17:32:52 UTC (rev 85063)
+++ trunk/moon/src/ChangeLog 2007-08-30 18:24:28 UTC (rev 85064)
@@ -1,3 +1,8 @@
+2007-08-30 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * shape.cpp: In some degenerate cases Radius[X|Y] can be ignored
+ for rectangles.
+
2007-08-30 Jeffrey Stedfast <[EMAIL PROTECTED]>
* mplayer.cpp (AdvanceFrame): If there is no video stream, return
Modified: trunk/moon/src/shape.cpp
===================================================================
--- trunk/moon/src/shape.cpp 2007-08-30 17:32:52 UTC (rev 85063)
+++ trunk/moon/src/shape.cpp 2007-08-30 18:24:28 UTC (rev 85064)
@@ -782,8 +782,7 @@
double w, h;
double radius_x, radius_y;
bool compute_origin = false;
- // degenerate cases are handled differently for round-corner rectangles
- bool round = GetRadius (&radius_x, &radius_y);
+ bool round = FALSE;
cairo_new_path (cr);
@@ -800,9 +799,13 @@
}
SetShapeFlags (UIElement::SHAPE_DEGENERATE);
+ // note: in this case the Radius[X|Y] properties are ignored
goto shape;
}
+ // degenerate cases are handled differently for round-corner rectangles
+ round = GetRadius (&radius_x, &radius_y);
+
w = width->AsDouble ();
h = height->AsDouble ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches