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

Codacy.
This commit is contained in:
lightningterror 2023-01-05 11:47:03 +01:00
parent 314143db7a
commit 987fdd32fb
1 changed files with 1 additions and 1 deletions

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)
{