From 19d74900a4e1b89458c829d02a51f178b3c3ba7a Mon Sep 17 00:00:00 2001 From: letsfindaway Date: Sat, 20 Mar 2021 11:30:41 +0100 Subject: [PATCH] take systemScaleFactor into account for pointer diameter --- src/domain/UBGraphicsScene.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/domain/UBGraphicsScene.cpp b/src/domain/UBGraphicsScene.cpp index 1ed8b150..327b43c2 100644 --- a/src/domain/UBGraphicsScene.cpp +++ b/src/domain/UBGraphicsScene.cpp @@ -808,6 +808,7 @@ void UBGraphicsScene::hideEraser() void UBGraphicsScene::drawPointer(const QPointF &pPoint, bool isFirstDraw) { qreal pointerDiameter = UBSettings::pointerDiameter / UBApplication::boardController->currentZoom(); + pointerDiameter /= UBApplication::boardController->systemScaleFactor(); qreal pointerRadius = pointerDiameter / 2; // TODO UB 4.x optimize - no need to do that every time we move it