FIX: remove text translate of all plates stats button

Change-Id: If19e522051cb81f69c37b1fb37d4db2b516ccdc9
This commit is contained in:
liz.li 2023-02-27 09:58:36 +08:00 committed by Lane.Wei
parent 0e2124e3e2
commit 1d94e0c021
1 changed files with 4 additions and 4 deletions

View File

@ -7319,12 +7319,12 @@ void GLCanvas3D::_render_imgui_select_plate_toolbar()
// draw text
GImGui->FontSize = 15.0f;
ImGui::PushStyleColor(ImGuiCol_Text, text_clr);
ImVec2 text_size = ImGui::CalcTextSize(_L("All Plates").c_str());
ImVec2 text_size = ImGui::CalcTextSize(("All Plates"));
ImVec2 text_start_pos = ImVec2(start_pos.x + (button_width - text_size.x) / 2, start_pos.y + 3.0f * button_height / 5.0f);
ImGui::RenderText(text_start_pos, _L("All Plates").c_str());
text_size = ImGui::CalcTextSize(_L("Stats").c_str());
ImGui::RenderText(text_start_pos, ("All Plates"));
text_size = ImGui::CalcTextSize(("Stats"));
text_start_pos = ImVec2(start_pos.x + (button_width - text_size.x) / 2, text_start_pos.y + ImGui::GetTextLineHeight());
ImGui::RenderText(text_start_pos, _L("Stats").c_str());
ImGui::RenderText(text_start_pos, ("Stats"));
ImGui::PopStyleColor();
ImGui::SetWindowFontScale(1.2f);
}