From 65134fb75c3e94b7869fb6d490f88bf4b252760e Mon Sep 17 00:00:00 2001 From: Siqi LIU Date: Thu, 25 Jul 2013 17:27:10 +0200 Subject: minor updates for avahi/bonjour refacotration Change-Id: I89e0115ddbea953de4ee0468c66e949070087a96 --- slideshow/source/engine/pointersymbol.cxx | 1 + slideshow/source/engine/pointersymbol.hxx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'slideshow') 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( realSize.Width * pos.X, LEFT_BORDER_SPACE ), std::max( 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: -- cgit