From 4a889c808d9f4a690ed8489f2c2ac3793bb4f73a Mon Sep 17 00:00:00 2001 From: Luca D'Amico Date: Fri, 11 Aug 2017 14:39:14 +0200 Subject: [PATCH] another small fix to the FPS Counter (for the 2nd time) --- src/CxbxKrnl/EmuD3D8.cpp | 2 +- src/CxbxKrnl/EmuShared.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CxbxKrnl/EmuD3D8.cpp b/src/CxbxKrnl/EmuD3D8.cpp index 54da6671f..2e2ea2360 100644 --- a/src/CxbxKrnl/EmuD3D8.cpp +++ b/src/CxbxKrnl/EmuD3D8.cpp @@ -10230,7 +10230,7 @@ VOID WINAPI XTL::EMUPATCH(D3DDevice_GetMaterial) static void UpdateCurrentMSpFAndFPS() { if (g_EmuShared) { - static float currentFPSVal; + static float currentFPSVal = 30; float currentMSpFVal = (float)(1000.0 / (currentFPSVal == 0 ? 0.001 : currentFPSVal)); g_EmuShared->SetCurrentMSpF(¤tMSpFVal); diff --git a/src/CxbxKrnl/EmuShared.h b/src/CxbxKrnl/EmuShared.h index a9026a611..7277cb531 100644 --- a/src/CxbxKrnl/EmuShared.h +++ b/src/CxbxKrnl/EmuShared.h @@ -134,7 +134,7 @@ class EmuShared : public Mutex int m_FlagsLLE; int m_XInputEnabled; float m_MSpF; - float m_FPS = 30; + float m_FPS; }; // ******************************************************************