recalcClipRegions when transparency changed
authorFelix Domke <tmbinc@elitedvb.net>
Wed, 21 Mar 2007 17:00:21 +0000 (17:00 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Wed, 21 Mar 2007 17:00:21 +0000 (17:00 +0000)
lib/gui/ewidget.cpp

index 30602c5..8a396ad 100644 (file)
@@ -205,10 +205,14 @@ void eWidget::setZPosition(int z)
 
 void eWidget::setTransparent(int transp)
 {
 
 void eWidget::setTransparent(int transp)
 {
-       if (transp)
-               m_vis |= wVisTransparent;
-       else
-               m_vis &=~wVisTransparent;
+       if (isTransparent() != transp)
+       {
+               if (transp)
+                       m_vis |= wVisTransparent;
+               else
+                       m_vis &=~wVisTransparent;
+               recalcClipRegionsWhenVisible();
+       }
 }
 
 ePoint eWidget::getAbsolutePosition()
 }
 
 ePoint eWidget::getAbsolutePosition()