summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorDaniel Lohmann <LibreOfficeContribution@dldld.de>2022-11-27 11:52:56 +0100
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2022-11-28 08:47:47 +0100
commit54681a12b38db29b4d65e3c4f4c52a12436965d0 (patch)
tree1c902a41a7885338cbea525d549e4122477ef78a /slideshow
parent176f77607ed1001efca402d1807e12b93d914847 (diff)
Presenter screen wrong position of pointer
The pointer is drawn on the presenting screen and the presenter console. In the presenter console the position of the pointer is not matching the position on the slide or position in the impress remote app. This fixed by this commit. Change-Id: I5650f62304934d2acb558e32a8e9de78a9f0a12a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143341 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/pointersymbol.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/slideshow/source/engine/pointersymbol.cxx b/slideshow/source/engine/pointersymbol.cxx
index 50f4421add5c..00832a4edf26 100644
--- a/slideshow/source/engine/pointersymbol.cxx
+++ b/slideshow/source/engine/pointersymbol.cxx
@@ -96,8 +96,8 @@ basegfx::B2DPoint PointerSymbol::calcSpritePos(UnoViewSharedPtr const & rView) c
const geometry::IntegerSize2D realTranslationOffset ( rView->getTranslationOffset() );
return basegfx::B2DPoint(
- realTranslationOffset.Width + ((aViewArea.Width - aViewArea.X) - 2 * realTranslationOffset.Width) * maPos.X,
- realTranslationOffset.Height + ((aViewArea.Height - aViewArea.Y) - 2 * realTranslationOffset.Height) * maPos.Y);
+ realTranslationOffset.Width + (aViewArea.Width * maPos.X),
+ realTranslationOffset.Height + (aViewArea.Height * maPos.Y));
}
void PointerSymbol::viewAdded( const UnoViewSharedPtr& rView )