mirror of https://github.com/PCSX2/pcsx2.git
Frontend-imgui: Fix scope of the variable can be reduced warning.
Codacy.
This commit is contained in:
parent
314143db7a
commit
987fdd32fb
|
@ -112,7 +112,6 @@ void ImGuiManager::DrawPerformanceOverlay()
|
||||||
ImDrawList* dl = ImGui::GetBackgroundDrawList();
|
ImDrawList* dl = ImGui::GetBackgroundDrawList();
|
||||||
std::string text;
|
std::string text;
|
||||||
ImVec2 text_size;
|
ImVec2 text_size;
|
||||||
bool first = true;
|
|
||||||
|
|
||||||
text.reserve(128);
|
text.reserve(128);
|
||||||
|
|
||||||
|
@ -132,6 +131,7 @@ void ImGuiManager::DrawPerformanceOverlay()
|
||||||
|
|
||||||
if (!paused)
|
if (!paused)
|
||||||
{
|
{
|
||||||
|
bool first = true;
|
||||||
const float speed = PerformanceMetrics::GetSpeed();
|
const float speed = PerformanceMetrics::GetSpeed();
|
||||||
if (GSConfig.OsdShowFPS)
|
if (GSConfig.OsdShowFPS)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue