vlc | branch: master | Jean-Paul Saman <jean-paul.sa...@m2x.nl> | Mon Mar 12 14:54:06 2012 +0100| [ff74e967e9777ed821734077051f55ac84a173a5] | committer: Jean-Paul Saman
skins2: resize new layout first when switching between layouts. When switching layouts the windows was resized to the default state at design time. Now the layout being switched to is first resized to the size of the current layout. Switching layouts now nolonger results in the layout being restored to its default size, instead it keeps the size the user inteded it to have. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ff74e967e9777ed821734077051f55ac84a173a5 --- modules/gui/skins2/src/top_window.cpp | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/modules/gui/skins2/src/top_window.cpp b/modules/gui/skins2/src/top_window.cpp index 8e99730..2579c2e 100644 --- a/modules/gui/skins2/src/top_window.cpp +++ b/modules/gui/skins2/src/top_window.cpp @@ -358,6 +358,7 @@ void TopWindow::setActiveLayout( GenericLayout *pLayout ) } // The current layout becomes inactive m_pActiveLayout->getActiveVar().set( false ); + pLayout->resize( m_pActiveLayout->getWidth(), m_pActiveLayout->getHeight() ); } pLayout->setWindow( this ); _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org http://mailman.videolan.org/listinfo/vlc-commits