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)
|
void CFramePerSecond::UpdateViCounter(void)
|
||||||
{
|
{
|
||||||
if (m_iFrameRateType != FR_VIs &&
|
if (!bDisplayFrameRate())
|
||||||
m_iFrameRateType != FR_VIs_DLs &&
|
{
|
||||||
m_iFrameRateType != FR_PERCENT)
|
return;
|
||||||
|
}
|
||||||
|
if (m_iFrameRateType != FR_VIs && m_iFrameRateType != FR_VIs_DLs && m_iFrameRateType != FR_PERCENT)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -149,6 +151,10 @@ void CFramePerSecond::ScreenHertzChanged(CFramePerSecond * _this)
|
||||||
|
|
||||||
void CFramePerSecond::UpdateDlCounter(void)
|
void CFramePerSecond::UpdateDlCounter(void)
|
||||||
{
|
{
|
||||||
|
if (!bDisplayFrameRate())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (m_iFrameRateType != FR_DLs && m_iFrameRateType != FR_VIs_DLs)
|
if (m_iFrameRateType != FR_DLs && m_iFrameRateType != FR_VIs_DLs)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -10,8 +10,9 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <Common/HighResTimeStamp.h>
|
#include <Common/HighResTimeStamp.h>
|
||||||
|
#include "../Settings/N64SystemSettings.h"
|
||||||
|
|
||||||
class CFramePerSecond
|
class CFramePerSecond : public CN64SystemSettings
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CFramePerSecond(void);
|
CFramePerSecond(void);
|
||||||
|
|
Loading…
Reference in New Issue