From: Olivier Teulière Date: Mon, 1 May 2006 13:28:07 +0000 (+0000) Subject: * skins2/src/generic_layout.cpp: do not draw on top of the embedded vout when X-Git-Tag: 0.9.0-test0~11340 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c90405bfb877bb9178de6079f3f3bac51a646ea8;p=vlc * skins2/src/generic_layout.cpp: do not draw on top of the embedded vout when resizing --- diff --git a/modules/gui/skins2/src/generic_layout.cpp b/modules/gui/skins2/src/generic_layout.cpp index e6e242dfdf..a89348eba0 100644 --- a/modules/gui/skins2/src/generic_layout.cpp +++ b/modules/gui/skins2/src/generic_layout.cpp @@ -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(); } }