take systemScaleFactor into account for pointer diameter

preferencesAboutTextFull
letsfindaway 4 years ago
parent 32ae89197a
commit 19d74900a4
  1. 1
      src/domain/UBGraphicsScene.cpp

@ -808,6 +808,7 @@ void UBGraphicsScene::hideEraser()
void UBGraphicsScene::drawPointer(const QPointF &pPoint, bool isFirstDraw) void UBGraphicsScene::drawPointer(const QPointF &pPoint, bool isFirstDraw)
{ {
qreal pointerDiameter = UBSettings::pointerDiameter / UBApplication::boardController->currentZoom(); qreal pointerDiameter = UBSettings::pointerDiameter / UBApplication::boardController->currentZoom();
pointerDiameter /= UBApplication::boardController->systemScaleFactor();
qreal pointerRadius = pointerDiameter / 2; qreal pointerRadius = pointerDiameter / 2;
// TODO UB 4.x optimize - no need to do that every time we move it // TODO UB 4.x optimize - no need to do that every time we move it

Loading…
Cancel
Save