]> git.sesse.net Git - vlc/commitdiff
* skins2/src/generic_layout.cpp: refresh the area of the Video control when it
authorOlivier Teulière <ipkiss@videolan.org>
Sun, 30 Jul 2006 13:04:27 +0000 (13:04 +0000)
committerOlivier Teulière <ipkiss@videolan.org>
Sun, 30 Jul 2006 13:04:27 +0000 (13:04 +0000)
   is not visible

modules/gui/skins2/src/generic_layout.cpp

index 444836b43134f0fb82e8eeb06866bcb17483ae4f..8d12ff1d60392529b666e8a07c3f76facdcde83e 100644 (file)
@@ -230,8 +230,8 @@ void GenericLayout::refreshRect( int x, int y, int width, int height )
         if( y + height > m_height )
             height = m_height - y;
 
-        // Refresh the window... but do not paint on a video control!
-        if( !m_pVideoControl )
+        // Refresh the window... but do not paint on a visible video control!
+        if( !m_pVideoControl || !m_pVideoControl->isVisible() )
         {
             // No video control, we can safely repaint the rectangle
             pWindow->refresh( x, y, width, height );