FIX: show label function display chinese incorrectly STUDIO-2097
https://jira.bambooolab.com/browse/STUDIO-2097 Change-Id: Ia2e213b08e184c0363a30967f84e7cb5e3bb3642
This commit is contained in:
parent
4c4b274408
commit
db86541df7
|
@ -796,8 +796,6 @@ void GLCanvas3D::Labels::render(const std::vector<const ModelInstance*>& sorted_
|
|||
imgui.begin(owner.title, ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove);
|
||||
ImGui::BringWindowToDisplayFront(ImGui::GetCurrentWindow());
|
||||
float win_w = ImGui::GetWindowWidth();
|
||||
float label_len = imgui.calc_text_size(owner.label).x;
|
||||
ImGui::SetCursorPosX(0.5f * (win_w - label_len));
|
||||
ImGui::AlignTextToFramePadding();
|
||||
imgui.text(owner.label);
|
||||
|
||||
|
|
Loading…
Reference in New Issue