mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
Qt: Fix Shake Mapping Indicator not showing deadzone
QRectF was missing from drawRect which meant the deazone was casted to an int, flooring its value (it goes from 0 to 1).
This commit is contained in:
parent
be74e35a0a
commit
43223aadc8
@ -592,9 +592,13 @@ void ShakeMappingIndicator::Draw()
|
||||
p.scale(1.0, -1.0);
|
||||
|
||||
// Deadzone.
|
||||
const double deadzone = m_shake_group.GetDeadzone();
|
||||
if (deadzone > 0.0)
|
||||
{
|
||||
p.setPen(GetDeadZonePen());
|
||||
p.setBrush(GetDeadZoneBrush(p));
|
||||
p.drawRect(-1.0, 0, 2, m_shake_group.GetDeadzone());
|
||||
p.drawRect(QRectF(-1, 0, 2, deadzone));
|
||||
}
|
||||
|
||||
// Raw input.
|
||||
const auto raw_coord = m_shake_group.GetState(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user