Fix #1524: Broken speed display
Before updating the status bar ensure that the user enabled speed display in the UI
This commit is contained in:
parent
fff7bb5793
commit
2f868d5e4c
|
@ -61,9 +61,11 @@ void CFramePerSecond::Reset(bool ClearDisplay)
|
|||
|
||||
void CFramePerSecond::UpdateViCounter(void)
|
||||
{
|
||||
if (m_iFrameRateType != FR_VIs &&
|
||||
m_iFrameRateType != FR_VIs_DLs &&
|
||||
m_iFrameRateType != FR_PERCENT)
|
||||
if (!bDisplayFrameRate())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_iFrameRateType != FR_VIs && m_iFrameRateType != FR_VIs_DLs && m_iFrameRateType != FR_PERCENT)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -149,6 +151,10 @@ void CFramePerSecond::ScreenHertzChanged(CFramePerSecond * _this)
|
|||
|
||||
void CFramePerSecond::UpdateDlCounter(void)
|
||||
{
|
||||
if (!bDisplayFrameRate())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_iFrameRateType != FR_DLs && m_iFrameRateType != FR_VIs_DLs)
|
||||
{
|
||||
return;
|
||||
|
|
|
@ -10,8 +10,9 @@
|
|||
****************************************************************************/
|
||||
#pragma once
|
||||
#include <Common/HighResTimeStamp.h>
|
||||
#include "../Settings/N64SystemSettings.h"
|
||||
|
||||
class CFramePerSecond
|
||||
class CFramePerSecond : public CN64SystemSettings
|
||||
{
|
||||
public:
|
||||
CFramePerSecond(void);
|
||||
|
|
Loading…
Reference in New Issue