From 2243b6e293171a9f769d6ccea5fdfaf516bc0f84 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 18 Nov 2021 22:47:58 +0100 Subject: [PATCH] Reset style. --- profiler/src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 844fc78a..f38214cc 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -182,8 +182,9 @@ static void SetupDPIScale( float scale, ImFont*& fixedWidth, ImFont*& bigFont, I { LoadFonts( scale, fixedWidth, bigFont, smallFont ); - ImGui::StyleColorsDark(); auto& style = ImGui::GetStyle(); + style = ImGuiStyle(); + ImGui::StyleColorsDark(); style.WindowBorderSize = 1.f * scale; style.FrameBorderSize = 1.f * scale; style.FrameRounding = 5.f;