mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-11-15 18:39:22 +01:00
RMG-Input: fix percentage for new image in ControllerImageWidget.cpp
This commit is contained in:
1 parent
d87bcc3a21
commit
ac7b9bce27
1 file changed
+1
-1
@@ -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<double>(height * 0.12265f) / 2);
|
||||
const double absoluteMaxOffset = (static_cast<double>(height * 0.114) / 2.0);
|
||||
// slope as in line gradient
|
||||
const double offsetSlope = absoluteMaxOffset / 100;
|
||||
// take sensitivity into account
|
||||
|
||||
Reference in new issue
Block a user