Commit c90405bf authored by Olivier Teulière's avatar Olivier Teulière

* skins2/src/generic_layout.cpp: do not draw on top of the embedded vout when

   resizing
parent b6ec3349
...@@ -192,12 +192,6 @@ void GenericLayout::resize( int width, int height ) ...@@ -192,12 +192,6 @@ void GenericLayout::resize( int width, int height )
for( iter = m_controlList.begin(); iter != m_controlList.end(); iter++ ) for( iter = m_controlList.begin(); iter != m_controlList.end(); iter++ )
{ {
iter->m_pControl->onResize(); 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 // Resize and refresh the associated window
...@@ -205,12 +199,11 @@ void GenericLayout::resize( int width, int height ) ...@@ -205,12 +199,11 @@ void GenericLayout::resize( int width, int height )
if( pWindow ) if( pWindow )
{ {
// Resize the window // Resize the window
pWindow->refresh( 0, 0, width, height );
pWindow->resize( width, height ); pWindow->resize( width, height );
pWindow->refresh( 0, 0, width, height ); refreshAll();
// Change the shape of the window and redraw it // Change the shape of the window and redraw it
pWindow->updateShape(); pWindow->updateShape();
pWindow->refresh( 0, 0, width, height ); refreshAll();
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment