Author: lewing
Date: 2007-10-10 14:37:46 -0400 (Wed, 10 Oct 2007)
New Revision: 87289
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/media.cpp
Log:
2007-10-10 Larry Ewing <[EMAIL PROTECTED]>
* media.cpp: Fill with the element extents don't just paint the
surface because if the stretch is specified we may end up painting
outside the proper area.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-10-10 18:08:27 UTC (rev 87288)
+++ trunk/moon/src/ChangeLog 2007-10-10 18:37:46 UTC (rev 87289)
@@ -1,3 +1,9 @@
+2007-10-10 Larry Ewing <[EMAIL PROTECTED]>
+
+ * media.cpp: Fill with the element extents don't just paint the
+ surface because if the stretch is specified we may end up painting
+ outside the proper area.
+
2007-10-10 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* media.cpp: When updating the MediaElement's progress, get the
Downloader's
@@ -161,6 +167,15 @@
2007-10-08 Larry Ewing <[EMAIL PROTECTED]>
+ * media.cpp:
+ * panel.cpp: intersect the bounds with the clip path to
+ optimize the invalidated region.
+
+ * shape.cpp: return 0.0 when shape_get_stroke_thickness is called
+ with a NULL.
+
+2007-10-08 Larry Ewing <[EMAIL PROTECTED]>
+
* runtime.cpp: change previous logic to drop the alpha
completely here until more testing can be done.
Modified: trunk/moon/src/media.cpp
===================================================================
--- trunk/moon/src/media.cpp 2007-10-10 18:08:27 UTC (rev 87288)
+++ trunk/moon/src/media.cpp 2007-10-10 18:37:46 UTC (rev 87289)
@@ -388,11 +388,15 @@
// NOTE: Some servers seem to have extreme perfomance issues
// when paint_with_alpha (cr, 1.0) is called even accidentally
- if (render_opacity < 1.0)
+ if (render_opacity < 1.0) {
+ cairo_rectangle (cr, 0, 0, w, h);
+ cairo_clip (cr);
cairo_paint_with_alpha (cr, render_opacity);
- else
- cairo_paint (cr);
-
+ } else {
+ cairo_rectangle (cr, 0, 0, w, h);
+ cairo_fill (cr);
+ }
+
cairo_restore (cr);
}
@@ -1335,11 +1339,13 @@
cairo_matrix_t matrix;
image_brush_compute_pattern_matrix (&matrix, w, h, surface->width,
surface->height, stretch,
AlignmentXCenter, AlignmentYCenter, NULL);
+
cairo_pattern_set_matrix (pattern, &matrix);
-
cairo_set_source (cr, pattern);
+
+ cairo_rectangle (cr, 0, 0, w, h);
+ cairo_fill (cr);
- cairo_paint (cr);
cairo_restore (cr);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches