Commit 380d67a9 authored by Erwan Tulou's avatar Erwan Tulou

skins2: add support for --[no]-qt-fs-controller

parent 735354e7
...@@ -62,6 +62,9 @@ FscWindow::FscWindow( intf_thread_t *pIntf, int left, int top, ...@@ -62,6 +62,9 @@ FscWindow::FscWindow( intf_thread_t *pIntf, int left, int top,
if( m_delay <= 0 ) if( m_delay <= 0 )
m_delay = FSC_DELAY; m_delay = FSC_DELAY;
/// activation overridden by user
m_enabled = var_InheritBool( getIntf(), "qt-fs-controller" );
// register Fsc // register Fsc
VoutManager::instance( getIntf())->registerFSC( this ); VoutManager::instance( getIntf())->registerFSC( this );
} }
...@@ -157,6 +160,9 @@ void FscWindow::onUpdate( Subject<VarBool> &rVariable, void *arg ) ...@@ -157,6 +160,9 @@ void FscWindow::onUpdate( Subject<VarBool> &rVariable, void *arg )
void FscWindow::innerShow() void FscWindow::innerShow()
{ {
if( !m_enabled )
return;
TopWindow::innerShow(); TopWindow::innerShow();
m_count = FSC_COUNT; m_count = FSC_COUNT;
......
...@@ -69,6 +69,8 @@ private: ...@@ -69,6 +69,8 @@ private:
int m_opacity; int m_opacity;
/// delay set by user /// delay set by user
int m_delay; int m_delay;
/// activation set by user
bool m_enabled;
/// Callback for the timer /// Callback for the timer
DEFINE_CALLBACK( FscWindow, FscHide ) DEFINE_CALLBACK( FscWindow, FscHide )
......
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