Frontend-imgui: Fix scope of the variable can be reduced warning.

Codacy.
This commit is contained in:
lightningterror committed 2023-01-05 15:02:17 +01:00
1 parent 314143db7a
commit 987fdd32fb
1 file changed
+1 -1
+1 -1
View File
@@ -112,7 +112,6 @@ void ImGuiManager::DrawPerformanceOverlay()
ImDrawList* dl = ImGui::GetBackgroundDrawList();
std::string text;
ImVec2 text_size;
bool first = true;
text.reserve(128);
@@ -132,6 +131,7 @@ void ImGuiManager::DrawPerformanceOverlay()
if (!paused)
{
bool first = true;
const float speed = PerformanceMetrics::GetSpeed();
if (GSConfig.OsdShowFPS)
{