mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-30 22:27:51 +00:00
Merge pull request #11874 from AdmiralCurtiss/vi-clock-bounds
VI: Prevent out-of-bounds access when clock register is a nonstandard value.
This commit is contained in:
commit
bab3229c98
1 changed files with 1 additions and 1 deletions
|
@ -717,7 +717,7 @@ u32 VideoInterfaceManager::GetTargetRefreshRateDenominator() const
|
|||
|
||||
u32 VideoInterfaceManager::GetTicksPerSample() const
|
||||
{
|
||||
return 2 * SystemTimers::GetTicksPerSecond() / CLOCK_FREQUENCIES[m_clock];
|
||||
return 2 * SystemTimers::GetTicksPerSecond() / CLOCK_FREQUENCIES[m_clock & 1];
|
||||
}
|
||||
|
||||
u32 VideoInterfaceManager::GetTicksPerHalfLine() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue