fix font_size bug

This commit is contained in:
QIDI TECH
2023-06-15 10:20:55 +08:00
parent ce30eb428f
commit 7ec159a58d
2 changed files with 2 additions and 2 deletions

View File

@@ -229,7 +229,7 @@ void ImGuiWrapper::set_scaling(float font_size, float scale_style, float scale_b
return;
}
m_font_size = 1.05f * font_size;
m_font_size = font_size;
ImGui::GetStyle().ScaleAllSizes(scale_style / m_style_scaling);
m_style_scaling = scale_style;