From 15924193558ae7f0e04d5bb1ea8ab94517c5a9ce Mon Sep 17 00:00:00 2001 From: Minh Ngo Date: Fri, 20 Sep 2013 00:03:36 +0300 Subject: Avmedia/VLC: Storing a frame size in the window class Change-Id: I28f5c74313fcd6dae368c5fa9e7d299ad0ad1d0b --- avmedia/source/vlc/vlcwindow.cxx | 14 ++++++-------- avmedia/source/vlc/vlcwindow.hxx | 1 + 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'avmedia') diff --git a/avmedia/source/vlc/vlcwindow.cxx b/avmedia/source/vlc/vlcwindow.cxx index 8ef99b37f2f5..d00db28024cc 100644 --- a/avmedia/source/vlc/vlcwindow.cxx +++ b/avmedia/source/vlc/vlcwindow.cxx @@ -102,21 +102,19 @@ void SAL_CALL VLCWindow::removeEventListener( const uno::Reference< lang::XEvent { } -void SAL_CALL VLCWindow::setPosSize( sal_Int32 /* X */, sal_Int32 /* Y */, sal_Int32 /* Width */, sal_Int32 /* Height */, sal_Int16 /* Flags */ ) +void SAL_CALL VLCWindow::setPosSize( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height, sal_Int16 /* Flags */ ) throw (uno::RuntimeException) { + mSize.X = X; + mSize.Y = Y; + mSize.Width = Width; + mSize.Height = Height; } awt::Rectangle SAL_CALL VLCWindow::getPosSize() throw (uno::RuntimeException) { - awt::Rectangle aRet; - - aRet.X = aRet.Y = 0; - aRet.Width = mPlayer.getWidth(); - aRet.Height = mPlayer.getHeight(); - - return aRet; + return mSize; } void SAL_CALL VLCWindow::setVisible( sal_Bool ) diff --git a/avmedia/source/vlc/vlcwindow.hxx b/avmedia/source/vlc/vlcwindow.hxx index 1eb05c9f4871..022a1b580791 100644 --- a/avmedia/source/vlc/vlcwindow.hxx +++ b/avmedia/source/vlc/vlcwindow.hxx @@ -31,6 +31,7 @@ class VLCWindow : public ::cppu::WeakImplHelper2 < ::com::sun::star::media::XPla VLCPlayer& mPlayer; const intptr_t mPrevWinID; ::com::sun::star::media::ZoomLevel meZoomLevel; + ::com::sun::star::awt::Rectangle mSize; public: VLCWindow( VLCPlayer& player, const intptr_t prevWinID ); virtual ~VLCWindow(); -- cgit