Skip to content
Permalink
Browse files
Merge pull request #9449 from Filoppi/patch-11
Qt: Fix Shake Mapping Indicator not showing deadzone
  • Loading branch information
leoetlino committed Jan 27, 2021
2 parents 42b55e8 + 43223aa commit 84ad550
Showing 1 changed file with 7 additions and 3 deletions.
@@ -592,9 +592,13 @@ void ShakeMappingIndicator::Draw()
p.scale(1.0, -1.0);

// Deadzone.
p.setPen(GetDeadZonePen());
p.setBrush(GetDeadZoneBrush(p));
p.drawRect(-1.0, 0, 2, m_shake_group.GetDeadzone());
const double deadzone = m_shake_group.GetDeadzone();
if (deadzone > 0.0)
{
p.setPen(GetDeadZonePen());
p.setBrush(GetDeadZoneBrush(p));
p.drawRect(QRectF(-1, 0, 2, deadzone));
}

// Raw input.
const auto raw_coord = m_shake_group.GetState(false);

0 comments on commit 84ad550

Please sign in to comment.