Commit a10158cf authored by Erwan Tulou's avatar Erwan Tulou

skins2: use new vout_window_ReportSize

parent 951e8760
...@@ -77,6 +77,7 @@ void VoutWindow::setCtrlVideo( CtrlVideo* pCtrlVideo ) ...@@ -77,6 +77,7 @@ void VoutWindow::setCtrlVideo( CtrlVideo* pCtrlVideo )
setParent( pCtrlVideo->getWindow(), x, y, w, h ); setParent( pCtrlVideo->getWindow(), x, y, w, h );
m_pParentWindow = pCtrlVideo->getWindow(); m_pParentWindow = pCtrlVideo->getWindow();
resize( w, h );
show(); show();
} }
else else
...@@ -89,6 +90,8 @@ void VoutWindow::setCtrlVideo( CtrlVideo* pCtrlVideo ) ...@@ -89,6 +90,8 @@ void VoutWindow::setCtrlVideo( CtrlVideo* pCtrlVideo )
0, 0, w, h ); 0, 0, w, h );
m_pParentWindow = m_pParentWindow =
VoutManager::instance( getIntf() )->getVoutMainWindow(); VoutManager::instance( getIntf() )->getVoutMainWindow();
resize( w, h );
show(); show();
} }
...@@ -96,6 +99,15 @@ void VoutWindow::setCtrlVideo( CtrlVideo* pCtrlVideo ) ...@@ -96,6 +99,15 @@ void VoutWindow::setCtrlVideo( CtrlVideo* pCtrlVideo )
} }
void VoutWindow::resize( int width, int height )
{
GenericWindow::resize( width, height );
if( m_pWnd )
vout_window_ReportSize( m_pWnd, width, height );
}
void VoutWindow::processEvent( EvtKey &rEvtKey ) void VoutWindow::processEvent( EvtKey &rEvtKey )
{ {
// Only do the action when the key is down // Only do the action when the key is down
......
...@@ -69,6 +69,9 @@ public: ...@@ -69,6 +69,9 @@ public:
virtual void setOriginalWidth( int width ) { original_width = width; } virtual void setOriginalWidth( int width ) { original_width = width; }
virtual void setOriginalHeight( int height ) { original_height = height; } virtual void setOriginalHeight( int height ) { original_height = height; }
/// Resize the window
virtual void resize( int width, int height );
virtual string getType() const { return "Vout"; } virtual string getType() const { return "Vout"; }
private: private:
......
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