summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorMinh Ngo <nlminhtl@gmail.com>2013-09-20 00:03:36 +0300
committerMinh Ngo <nlminhtl@gmail.com>2013-09-20 00:56:13 +0300
commit15924193558ae7f0e04d5bb1ea8ab94517c5a9ce (patch)
treee99abcd6f1775187ec69e300e4a9f40b5162c327 /avmedia
parent77af2e7d7524737aaafda1424c9344fd7e6d660a (diff)
Avmedia/VLC: Storing a frame size in the window class
Change-Id: I28f5c74313fcd6dae368c5fa9e7d299ad0ad1d0b
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/vlc/vlcwindow.cxx14
-rw-r--r--avmedia/source/vlc/vlcwindow.hxx1
2 files changed, 7 insertions, 8 deletions
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();