Commit 23c4cec4 authored by Erwan Tulou's avatar 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.
parent 6c4ac35e
...@@ -41,6 +41,10 @@ CtrlVideo::CtrlVideo( intf_thread_t *pIntf, GenericLayout &rLayout, ...@@ -41,6 +41,10 @@ CtrlVideo::CtrlVideo( intf_thread_t *pIntf, GenericLayout &rLayout,
{ {
VarBool &rFullscreen = VlcProc::instance( getIntf() )->getFullscreenVar(); VarBool &rFullscreen = VlcProc::instance( getIntf() )->getFullscreenVar();
rFullscreen.addObserver( this ); rFullscreen.addObserver( this );
// if global parameter set to no resize, override skins behavior
if( !var_InheritBool( pIntf, "qt-video-autoresize" ) )
m_bAutoResize = false;
} }
......
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