From ac7b9bce27df4d5b1ed36d58c1a379e22ddfc5cd Mon Sep 17 00:00:00 2001 From: Rosalie Wanders Date: Wed, 19 Mar 2025 22:00:01 +0100 Subject: [PATCH] RMG-Input: fix percentage for new image in ControllerImageWidget.cpp --- Source/RMG-Input/UserInterface/Widget/ControllerImageWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/RMG-Input/UserInterface/Widget/ControllerImageWidget.cpp b/Source/RMG-Input/UserInterface/Widget/ControllerImageWidget.cpp index 95930876..e2804ecf 100644 --- a/Source/RMG-Input/UserInterface/Widget/ControllerImageWidget.cpp +++ b/Source/RMG-Input/UserInterface/Widget/ControllerImageWidget.cpp @@ -166,7 +166,7 @@ void ControllerImageWidget::paintEvent(QPaintEvent *event) const int height = rectF.height(); // we'll move the analog stick by a percentage // of the total width/height from the image - const double absoluteMaxOffset = (static_cast(height * 0.12265f) / 2); + const double absoluteMaxOffset = (static_cast(height * 0.114) / 2.0); // slope as in line gradient const double offsetSlope = absoluteMaxOffset / 100; // take sensitivity into account