Author: toshok
Date: 2008-02-06 14:13:55 -0500 (Wed, 06 Feb 2008)
New Revision: 95063

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/uielement.cpp
Log:
2008-02-06  Chris Toshok  <[EMAIL PROTECTED]>

        * uielement.cpp (UIElement::FrontToBack): use the media state
        accessors, and don't exclude Buffering state - we could be
        buffering with a frame rendered.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2008-02-06 19:11:13 UTC (rev 95062)
+++ trunk/moon/src/ChangeLog    2008-02-06 19:13:55 UTC (rev 95063)
@@ -1,3 +1,9 @@
+2008-02-06  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * uielement.cpp (UIElement::FrontToBack): use the media state
+       accessors, and don't exclude Buffering state - we could be
+       buffering with a frame rendered.
+
 2008-02-06  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * shape.cpp|h: Keep track if a rectangle has radii or not.

Modified: trunk/moon/src/uielement.cpp
===================================================================
--- trunk/moon/src/uielement.cpp        2008-02-06 19:11:13 UTC (rev 95062)
+++ trunk/moon/src/uielement.cpp        2008-02-06 19:13:55 UTC (rev 95063)
@@ -521,8 +521,7 @@
                if (subtract) {
                        if (Is (Type::MEDIAELEMENT)) {
                                MediaElement *me = (MediaElement*)this;
-                               subtract = (media_element_get_current_state (me)
-                                           && strcmp 
(media_element_get_current_state (me), "Buffering")
+                               subtract = (!me->IsClosed ()
                                            && me->mplayer
                                            && me->mplayer->rendered_frame
                                            && ((me->mplayer->width == 
me->GetBounds().w
@@ -547,7 +546,6 @@
                                // it doesn't happen later.
                                subtract = false;
 
-
                                Rectangle *rectangle = (Rectangle*)this;
                                Brush *fill = shape_get_fill (rectangle);
 
@@ -578,7 +576,6 @@
 
                if (subtract)
                        surface_region->Subtract (bounds.RoundIn());
-
        }
 }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to