mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
DebugSurface: minor deduplication
Will be called in either of the 2 branches, can be deduplicated.
This commit is contained in:
parent
117e2d77e4
commit
4d4fb66477
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user