CogImgui: Remove debug draw

This commit is contained in:
Arnaud Jamin
2023-11-28 01:45:34 -05:00
parent a385e15f64
commit 69c4def0aa
2 changed files with 8 additions and 16 deletions
@@ -251,12 +251,18 @@ void FCogImguiContext::BeginFrame(float InDeltaTime)
//------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------
if (bRefreshDPIScale) if (bRefreshDPIScale)
{ {
RefreshDPIScale(); bRefreshDPIScale = false;
BuildFont();
ImGuiStyle NewStyle = ImGuiStyle();
ImGui::GetStyle() = MoveTemp(NewStyle);
NewStyle.ScaleAllSizes(DpiScale);
} }
ImGui::NewFrame(); ImGui::NewFrame();
DrawDebug(); //DrawDebug();
} }
//-------------------------------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------------------------------
@@ -624,18 +630,6 @@ void FCogImguiContext::SetDPIScale(float Value)
bRefreshDPIScale = true; bRefreshDPIScale = true;
} }
//--------------------------------------------------------------------------------------------------------------------------
void FCogImguiContext::RefreshDPIScale()
{
bRefreshDPIScale = false;
BuildFont();
ImGuiStyle NewStyle = ImGuiStyle();
ImGui::GetStyle() = MoveTemp(NewStyle);
NewStyle.ScaleAllSizes(DpiScale);
}
//-------------------------------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------------------------------
void FCogImguiContext::BuildFont() void FCogImguiContext::BuildFont()
{ {
@@ -57,8 +57,6 @@ private:
void TryReleaseGameMouseCapture(); void TryReleaseGameMouseCapture();
void RefreshDPIScale();
void BuildFont(); void BuildFont();
ULocalPlayer* GetLocalPlayer() const; ULocalPlayer* GetLocalPlayer() const;