Take guiScaling into account for grip handle size

This commit is contained in:
Casper Jeukendrup 2021-10-10 23:03:28 +02:00
parent 6637c73d86
commit 47129a1221

View file

@ -1862,8 +1862,10 @@ void NotationInteraction::drawGripPoints(draw::Painter* painter)
constexpr qreal DEFAULT_GRIP_SIZE = 8;
qreal gripWidth = DEFAULT_GRIP_SIZE / painter->worldTransform().m11();
qreal gripHeight = DEFAULT_GRIP_SIZE / painter->worldTransform().m22();
qreal guiScaling = configuration()->guiScaling();
qreal gripWidth = DEFAULT_GRIP_SIZE * guiScaling / painter->worldTransform().m11();
qreal gripHeight = DEFAULT_GRIP_SIZE * guiScaling / painter->worldTransform().m22();
RectF newRect(-gripWidth / 2, -gripHeight / 2, gripWidth, gripHeight);
EngravingItem* page = m_gripEditData.element->findAncestor(ElementType::PAGE);