]> git.sesse.net Git - vlc/commitdiff
skins2: don't resize video if set up not to do so.
authorErwan Tulou <erwan10@videolan.org>
Sat, 14 Aug 2010 09:49:18 +0000 (11:49 +0200)
committerErwan Tulou <erwan10@videolan.org>
Sat, 14 Aug 2010 11:38:08 +0000 (13:38 +0200)
This bug has become more conspicuous in vlc1.2, because of some enhancement in
 the vout reuse (width/height no longer a limitation)

modules/gui/skins2/controls/ctrl_video.cpp

index 5008d6de3ac3a3701fb935b332ad07cfcc884745..6409c445cc0492d3d8ba806fdd26631f1bd3c2aa 100644 (file)
@@ -133,6 +133,9 @@ void CtrlVideo::unsetLayout()
 
 void CtrlVideo::resizeControl( int width, int height )
 {
+    if( !m_bAutoResize )
+        return;
+
     WindowManager &rWindowManager =
         getIntf()->p_sys->p_theme->getWindowManager();