DebugSurface: minor deduplication

Will be called in either of the 2 branches, can be deduplicated.
This commit is contained in:
Kawe Mazidjatari 2025-01-08 20:57:24 +01:00
parent 117e2d77e4
commit 4d4fb66477

View File

@ -129,8 +129,6 @@ void CConsole::RunFrame(void)
if (m_surfaceStyle == ImGuiStyle_t::MODERN)
{
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2{ 8.f, 10.f }); baseWindowStyleVars++;
ImGui::PushStyleVar(ImGuiStyleVar_Alpha, m_fadeAlpha); baseWindowStyleVars++;
minBaseWindowRect = ImVec2(621.f, 532.f);
}
else
@ -140,9 +138,9 @@ void CConsole::RunFrame(void)
: ImVec2(618.f, 524.f);
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2{ 6.f, 6.f }); baseWindowStyleVars++;
ImGui::PushStyleVar(ImGuiStyleVar_Alpha, m_fadeAlpha); baseWindowStyleVars++;
}
ImGui::PushStyleVar(ImGuiStyleVar_Alpha, m_fadeAlpha); baseWindowStyleVars++;
ImGui::PushStyleVar(ImGuiStyleVar_WindowMinSize, minBaseWindowRect); baseWindowStyleVars++;
const bool drawn = DrawSurface();