From 3b66acd3950145867338dc6152a92ea383d7c535 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 15 Oct 2021 19:55:08 +1000 Subject: [PATCH] CommonHostInterface: Remove unused variable in DrawEnhancementsOverlay --- src/frontend-common/common_host_interface.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/frontend-common/common_host_interface.cpp b/src/frontend-common/common_host_interface.cpp index 30da486dd..d5db89601 100644 --- a/src/frontend-common/common_host_interface.cpp +++ b/src/frontend-common/common_host_interface.cpp @@ -1362,13 +1362,12 @@ void CommonHostInterface::DrawEnhancementsOverlay() text.AppendString("/Depth"); } - float shadow_offset, margin, spacing, position_y; + float shadow_offset, margin, position_y; ImFont* font; if (m_fullscreen_ui_enabled) { margin = ImGuiFullscreen::LayoutScale(10.0f); - spacing = margin; shadow_offset = ImGuiFullscreen::DPIScale(1.0f); font = ImGuiFullscreen::g_medium_font; position_y = ImGui::GetIO().DisplaySize.y - margin - font->FontSize; @@ -1378,7 +1377,6 @@ void CommonHostInterface::DrawEnhancementsOverlay() const float scale = ImGui::GetIO().DisplayFramebufferScale.x; shadow_offset = 1.0f * scale; margin = 10.0f * scale; - spacing = 5.0f * scale; font = ImGui::GetFont(); position_y = ImGui::GetIO().DisplaySize.y - margin - font->FontSize; }