Commit 6ba2d51e authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix toggling of transparency on teletext pages. Keep in mind that the...

Fix toggling of transparency on teletext pages. Keep in mind that the subpicture core seems to be broken. It doesn't remove old subpictures with the ephemer setting as it used to do.
parent 52ca31e6
...@@ -504,7 +504,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -504,7 +504,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
BUTTON_SET_ACT_I( telexTransparent, "", tvtelx.png, qtr( "Teletext" ), BUTTON_SET_ACT_I( telexTransparent, "", tvtelx.png, qtr( "Teletext" ),
toggleTeletextTransparency() ); toggleTeletextTransparency() );
CONNECT( telexTransparent, clicked( bool ), CONNECT( telexTransparent, clicked( bool ),
THEMIM->getIM(), telexSetTransparency( bool ) ); THEMIM->getIM(), telexSetTransparency() );
CONNECT( THEMIM->getIM(), teletextEnabled( bool ), CONNECT( THEMIM->getIM(), teletextEnabled( bool ),
telexFrame, setVisible( bool ) ); telexFrame, setVisible( bool ) );
......
...@@ -63,6 +63,7 @@ InputManager::InputManager( QObject *parent, intf_thread_t *_p_intf) : ...@@ -63,6 +63,7 @@ InputManager::InputManager( QObject *parent, intf_thread_t *_p_intf) :
p_input = NULL; p_input = NULL;
i_rate = 0; i_rate = 0;
i_input_id = 0; i_input_id = 0;
b_transparentTelextext = false;
} }
InputManager::~InputManager() InputManager::~InputManager()
...@@ -440,7 +441,7 @@ void InputManager::telexToggle( bool b_enabled ) ...@@ -440,7 +441,7 @@ void InputManager::telexToggle( bool b_enabled )
telexGotoPage( i_page ); telexGotoPage( i_page );
} }
void InputManager::telexSetTransparency( bool b_transp ) void InputManager::telexSetTransparency()
{ {
if( hasInput() ) if( hasInput() )
{ {
...@@ -449,7 +450,8 @@ void InputManager::telexSetTransparency( bool b_transp ) ...@@ -449,7 +450,8 @@ void InputManager::telexSetTransparency( bool b_transp )
"zvbi", FIND_ANYWHERE ); "zvbi", FIND_ANYWHERE );
if( p_vbi ) if( p_vbi )
{ {
var_SetBool( p_input->p_libvlc, "vbi-opaque", b_transp ); var_SetBool( p_vbi, "vbi-opaque", b_transparentTelextext );
b_transparentTelextext = !b_transparentTelextext;
vlc_object_release( p_vbi ); vlc_object_release( p_vbi );
} }
} }
......
...@@ -77,6 +77,7 @@ private: ...@@ -77,6 +77,7 @@ private:
QString old_name; QString old_name;
QString artUrl; QString artUrl;
int i_rate; int i_rate;
bool b_transparentTelextext;
void customEvent( QEvent * ); void customEvent( QEvent * );
void addCallbacks(); void addCallbacks();
...@@ -102,7 +103,7 @@ public slots: ...@@ -102,7 +103,7 @@ public slots:
void sectionMenu(); void sectionMenu();
void telexGotoPage( int ); ///< Goto teletext page void telexGotoPage( int ); ///< Goto teletext page
void telexToggle( bool ); ///< Enable disable teletext buttons void telexToggle( bool ); ///< Enable disable teletext buttons
void telexSetTransparency( bool ); ///< Set transparency on teletext background void telexSetTransparency(); ///< Set transparency on teletext background
signals: signals:
/// Send new position, new time and new length /// Send new position, new time and new length
......
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