]> git.sesse.net Git - vlc/commitdiff
* skins2/src/generic_layout.cpp: do not draw on top of the embedded vout when
authorOlivier Teulière <ipkiss@videolan.org>
Mon, 1 May 2006 13:28:07 +0000 (13:28 +0000)
committerOlivier Teulière <ipkiss@videolan.org>
Mon, 1 May 2006 13:28:07 +0000 (13:28 +0000)
   resizing

modules/gui/skins2/src/generic_layout.cpp

index e6e242dfdf7e0ad8f76601d070220b2d8e2a03c1..a89348eba08243086e51be6d3a8ad1e6e95a4c31 100644 (file)
@@ -192,12 +192,6 @@ void GenericLayout::resize( int width, int height )
     for( iter = m_controlList.begin(); iter != m_controlList.end(); iter++ )
     {
         iter->m_pControl->onResize();
-        const Position *pPos = iter->m_pControl->getPosition();
-        if( pPos && iter->m_pControl->isVisible() )
-        {
-            iter->m_pControl->draw( *m_pImage, pPos->getLeft(),
-                                    pPos->getTop() );
-        }
     }
 
     // Resize and refresh the associated window
@@ -205,12 +199,11 @@ void GenericLayout::resize( int width, int height )
     if( pWindow )
     {
         // Resize the window
-        pWindow->refresh( 0, 0, width, height );
         pWindow->resize( width, height );
-        pWindow->refresh( 0, 0, width, height );
+        refreshAll();
         // Change the shape of the window and redraw it
         pWindow->updateShape();
-        pWindow->refresh( 0, 0, width, height );
+        refreshAll();
     }
 }