mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-01-30 23:48:44 +03:00
fix font_size bug
This commit is contained in:
@@ -5634,7 +5634,7 @@ void GLCanvas3D::_resize(unsigned int w, unsigned int h)
|
|||||||
|
|
||||||
auto *imgui = wxGetApp().imgui();
|
auto *imgui = wxGetApp().imgui();
|
||||||
imgui->set_display_size(static_cast<float>(w), static_cast<float>(h));
|
imgui->set_display_size(static_cast<float>(w), static_cast<float>(h));
|
||||||
const float font_size = 1.5f * wxGetApp().em_unit();
|
const float font_size = 1.7f * wxGetApp().em_unit();
|
||||||
#if ENABLE_RETINA_GL
|
#if ENABLE_RETINA_GL
|
||||||
imgui->set_scaling(font_size, 1.0f, m_retina_helper->get_scale_factor());
|
imgui->set_scaling(font_size, 1.0f, m_retina_helper->get_scale_factor());
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -229,7 +229,7 @@ void ImGuiWrapper::set_scaling(float font_size, float scale_style, float scale_b
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_font_size = 1.05f * font_size;
|
m_font_size = font_size;
|
||||||
|
|
||||||
ImGui::GetStyle().ScaleAllSizes(scale_style / m_style_scaling);
|
ImGui::GetStyle().ScaleAllSizes(scale_style / m_style_scaling);
|
||||||
m_style_scaling = scale_style;
|
m_style_scaling = scale_style;
|
||||||
|
|||||||
Reference in New Issue
Block a user