Author: lewing
Date: 2007-12-03 10:51:32 -0500 (Mon, 03 Dec 2007)
New Revision: 90549
Modified:
trunk/moon/ChangeLog
trunk/moon/src/ChangeLog
trunk/moon/src/brush.cpp
Log:
i2007-12-03 Larry Ewing <[EMAIL PROTECTED]>
* brush.cpp (RadialGradientBrush::SetupBrush): add debug spew
if we can't invert the matrix but still draw someting.
Modified: trunk/moon/ChangeLog
===================================================================
--- trunk/moon/ChangeLog 2007-12-03 15:05:05 UTC (rev 90548)
+++ trunk/moon/ChangeLog 2007-12-03 15:51:32 UTC (rev 90549)
@@ -1,3 +1,8 @@
+2007-12-03 Larry Ewing <[EMAIL PROTECTED]>
+
+ * src/brush.cpp (RadialGradientBrush::SetupBrush): add debug spew
+ if we can't invert the matrix but still draw someting.
+
2007-11-29 Larry Ewing <[EMAIL PROTECTED]>
* src/runtime.cpp (Surface::expose_event_callback): clear the
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-12-03 15:05:05 UTC (rev 90548)
+++ trunk/moon/src/ChangeLog 2007-12-03 15:51:32 UTC (rev 90549)
@@ -1,3 +1,8 @@
+2007-12-03 Larry Ewing <[EMAIL PROTECTED]>
+
+ * brush.cpp (RadialGradientBrush::SetupBrush): add debug spew
+ if we can't invert the matrix but still draw someting.
+
2007-11-29 Larry Ewing <[EMAIL PROTECTED]>
* panel.cpp (Panel::ComputeBounds): clip the clip the subpath
Modified: trunk/moon/src/brush.cpp
===================================================================
--- trunk/moon/src/brush.cpp 2007-12-03 15:05:05 UTC (rev 90548)
+++ trunk/moon/src/brush.cpp 2007-12-03 15:51:32 UTC (rev 90549)
@@ -576,11 +576,15 @@
// TODO - optimization, check for empty/identity matrix too ?
cairo_matrix_multiply (&matrix, &matrix, &tm);
}
- cairo_matrix_invert (&matrix);
+ cairo_status_t status = cairo_matrix_invert (&matrix);
+ if (status != CAIRO_STATUS_SUCCESS) {
+ printf ("Moonlight: Error inverting matrix falling back\n");
+ cairo_matrix_init_identity (&matrix);
+ }
cairo_pattern_set_matrix (pattern, &matrix);
-
GradientBrush::SetupGradient (pattern, uielement);
+ cairo_set_matrix (cr, &matrix);
cairo_set_source (cr, pattern);
cairo_pattern_destroy (pattern);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches