diff options
author | Siqi LIU <me@siqi.fr> | 2013-07-25 17:27:10 +0200 |
---|---|---|
committer | Siqi LIU <me@siqi.fr> | 2013-07-25 17:28:02 +0200 |
commit | 65134fb75c3e94b7869fb6d490f88bf4b252760e (patch) | |
tree | 1c5813e30c136e2a670c21c861fe23ef23141901 /slideshow | |
parent | 6100d94078d37cb1413a0e45460cee480ba3e211 (diff) |
minor updates for avahi/bonjour refacotration
Change-Id: I89e0115ddbea953de4ee0468c66e949070087a96
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/pointersymbol.cxx | 1 | ||||
-rw-r--r-- | slideshow/source/engine/pointersymbol.hxx | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/slideshow/source/engine/pointersymbol.cxx b/slideshow/source/engine/pointersymbol.cxx index 474db63d7070..48ad0e5d1693 100644 --- a/slideshow/source/engine/pointersymbol.cxx +++ b/slideshow/source/engine/pointersymbol.cxx @@ -107,6 +107,7 @@ basegfx::B2DPoint PointerSymbol::calcSpritePos( uno::UNO_QUERY_THROW ); const geometry::IntegerSize2D realSize( xBitmap->getSize() ); return basegfx::B2DPoint( + // pos.X pos.Y are given in 0..1, beginning from the upper left corner of the currentSlide. std::min<sal_Int32>( realSize.Width * pos.X, LEFT_BORDER_SPACE ), std::max<sal_Int32>( 0, realSize.Height * (1-pos.Y) - mxBitmap->getSize().Height - LOWER_BORDER_SPACE ) ); diff --git a/slideshow/source/engine/pointersymbol.hxx b/slideshow/source/engine/pointersymbol.hxx index 641626eb2ebe..9dc2818d2dd9 100644 --- a/slideshow/source/engine/pointersymbol.hxx +++ b/slideshow/source/engine/pointersymbol.hxx @@ -47,7 +47,8 @@ public: /** Hides the pointer symbol. */ void hide() { setVisible(false); } - + /** Use this method to update the pointer's position + */ virtual void viewsChanged(const ::com::sun::star::geometry::RealPoint2D& pos); private: |