[vlc-devel] commit: skins2: extend --[no]-qt-video-autoresize to skins2 (Erwan Tulou )
git version control
git at videolan.org
Thu Feb 25 11:20:24 CET 2010
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Thu Feb 25 11:08:39 2010 +0100| [23c4cec46995dbbfd1fb1e6b7aa7fa44f35a4722] | committer: Erwan Tulou
skins2: extend --[no]-qt-video-autoresize to skins2
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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=23c4cec46995dbbfd1fb1e6b7aa7fa44f35a4722
---
modules/gui/skins2/controls/ctrl_video.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/gui/skins2/controls/ctrl_video.cpp b/modules/gui/skins2/controls/ctrl_video.cpp
index a430fed..dc2e319 100644
--- a/modules/gui/skins2/controls/ctrl_video.cpp
+++ b/modules/gui/skins2/controls/ctrl_video.cpp
@@ -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;
}
More information about the vlc-devel
mailing list