diff options
| author | JosJuice <josjuice@gmail.com> | 2026-04-05 21:07:00 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2026-04-05 22:07:47 +0200 |
| commit | b083ce5912b78f42a90705dac9321ea591517307 (patch) | |
| tree | 84620761fe192e482f10c3744409b04c86e61a35 /Source/Core/VideoCommon/GraphicsModSystem | |
| parent | 45358509a5571a67477433e9c3387b1dbc68b7b5 (diff) | |
HW/GBPlayer: Use u32 in SampleToPWM
`value` contains 16 bits of data and `remainder` contains 11 bits of
data. When they're added together, we may end up with 17 bits of data,
so the result should be stored as u32 rather than u16.
This fixes `y` being set to 0 (minimum amplitude) when it should be set
to 32 (maximum amplitude).
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem')
0 files changed, 0 insertions, 0 deletions
