mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
Fix core rounding error with analog input sensitivity scaling (nw)
This commit is contained in:
parent
0fd5d5abc2
commit
03b46122de
@ -3429,7 +3429,7 @@ inline s32 analog_field::apply_min_max(s32 value) const
|
||||
|
||||
inline s32 analog_field::apply_sensitivity(s32 value) const
|
||||
{
|
||||
return s32((s64(value) * m_sensitivity) / 100.0 + 0.5);
|
||||
return lround((s64(value) * m_sensitivity) / 100.0);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user