mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 00:01:37 -07:00
CogImgui: Remove debug draw
This commit is contained in:
@@ -251,12 +251,18 @@ void FCogImguiContext::BeginFrame(float InDeltaTime)
|
||||
//-------------------------------------------------------------------------------------------------------
|
||||
if (bRefreshDPIScale)
|
||||
{
|
||||
RefreshDPIScale();
|
||||
bRefreshDPIScale = false;
|
||||
|
||||
BuildFont();
|
||||
|
||||
ImGuiStyle NewStyle = ImGuiStyle();
|
||||
ImGui::GetStyle() = MoveTemp(NewStyle);
|
||||
NewStyle.ScaleAllSizes(DpiScale);
|
||||
}
|
||||
|
||||
ImGui::NewFrame();
|
||||
|
||||
DrawDebug();
|
||||
//DrawDebug();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
@@ -624,18 +630,6 @@ void FCogImguiContext::SetDPIScale(float Value)
|
||||
bRefreshDPIScale = true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
void FCogImguiContext::RefreshDPIScale()
|
||||
{
|
||||
bRefreshDPIScale = false;
|
||||
|
||||
BuildFont();
|
||||
|
||||
ImGuiStyle NewStyle = ImGuiStyle();
|
||||
ImGui::GetStyle() = MoveTemp(NewStyle);
|
||||
NewStyle.ScaleAllSizes(DpiScale);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
void FCogImguiContext::BuildFont()
|
||||
{
|
||||
|
||||
@@ -57,8 +57,6 @@ private:
|
||||
|
||||
void TryReleaseGameMouseCapture();
|
||||
|
||||
void RefreshDPIScale();
|
||||
|
||||
void BuildFont();
|
||||
|
||||
ULocalPlayer* GetLocalPlayer() const;
|
||||
|
||||
Reference in New Issue
Block a user