]> git.sesse.net Git - vlc/commitdiff
skins2: extend --[no]-qt-video-autoresize to skins2
authorErwan Tulou <erwan10@videolan.org>
Thu, 25 Feb 2010 10:08:39 +0000 (11:08 +0100)
committerErwan Tulou <erwan10@videolan.org>
Thu, 25 Feb 2010 10:19:06 +0000 (11:19 +0100)
As for qt4, offering the possibility to deactivate automatic resizing
is desirable. Reusing the qt parameter is not a problem for skins since
qt4 is a prerequisite.

TODO, rename this parameter with a more interface agnostic name since
the need is for all interfaces.

modules/gui/skins2/controls/ctrl_video.cpp

index a430fedbfadb388f626d125cfc75ddc838a80b56..dc2e3192b803cf3cf355cef6ea15aa8e4d1128a4 100644 (file)
@@ -41,6 +41,10 @@ CtrlVideo::CtrlVideo( intf_thread_t *pIntf, GenericLayout &rLayout,
 {
     VarBool &rFullscreen = VlcProc::instance( getIntf() )->getFullscreenVar();
     rFullscreen.addObserver( this );
+
+    // if global parameter set to no resize, override skins behavior
+    if( !var_InheritBool( pIntf, "qt-video-autoresize" ) )
+        m_bAutoResize = false;
 }