summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/GraphicsModSystem
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2026-04-05 21:07:00 +0200
committerJosJuice <josjuice@gmail.com>2026-04-05 22:07:47 +0200
commitb083ce5912b78f42a90705dac9321ea591517307 (patch)
tree84620761fe192e482f10c3744409b04c86e61a35 /Source/Core/VideoCommon/GraphicsModSystem
parent45358509a5571a67477433e9c3387b1dbc68b7b5 (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