Author: lewing
Date: 2007-10-02 03:20:35 -0400 (Tue, 02 Oct 2007)
New Revision: 86733

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/dirty.cpp
   trunk/moon/src/uielement.cpp
Log:
2007-10-02  Larry Ewing  <[EMAIL PROTECTED]>

        * uielement.cpp (UIElement::Invalidate): Only invalidate if
        opacity is > 0.
        * dirty.cpp (process_dirty_elements): be sure to invalidate
        * before
        and after the opacity change.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-10-02 03:08:44 UTC (rev 86732)
+++ trunk/moon/src/ChangeLog    2007-10-02 07:20:35 UTC (rev 86733)
@@ -1,3 +1,10 @@
+2007-10-02  Larry Ewing  <[EMAIL PROTECTED]>
+
+       * uielement.cpp (UIElement::Invalidate): Only invalidate if
+       opacity is > 0.
+       * dirty.cpp (process_dirty_elements): be sure to invalidate before
+       and after the opacity change.
+
 2007-10-02  Jb Evain  <[EMAIL PROTECTED]>
 
        * playlist.cpp: deal with non lowercase file exts.

Modified: trunk/moon/src/dirty.cpp
===================================================================
--- trunk/moon/src/dirty.cpp    2007-10-02 03:08:44 UTC (rev 86732)
+++ trunk/moon/src/dirty.cpp    2007-10-02 07:20:35 UTC (rev 86733)
@@ -133,6 +133,7 @@
                if (el->dirty_flags & DirtyOpacity) {
                        el->dirty_flags &= ~DirtyOpacity;
 
+                       el->Invalidate ();
                        el->ComputeTotalOpacity ();
                        el->Invalidate ();
 

Modified: trunk/moon/src/uielement.cpp
===================================================================
--- trunk/moon/src/uielement.cpp        2007-10-02 03:08:44 UTC (rev 86732)
+++ trunk/moon/src/uielement.cpp        2007-10-02 07:20:35 UTC (rev 86733)
@@ -318,7 +318,7 @@
 void
 UIElement::Invalidate (Rect r)
 {
-       if (!GetVisible())
+       if (!GetVisible() || GetTotalOpacity() <= 0.0)
                return;
 
 #ifdef DEBUG_INVALIDATE

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

Reply via email to