Satisfy GCC -Wformat-security with TextUnformatted

This commit is contained in:
Christopher Hewitt
2022-01-25 14:02:52 -07:00
parent 2c3b603b88
commit aa265ea312
6 changed files with 10 additions and 10 deletions

View File

@ -49,7 +49,7 @@ namespace ImGui {
void LeftLabel(const char* text) {
float vpos = ImGui::GetCursorPosY();
ImGui::SetCursorPosY(vpos + GImGui->Style.FramePadding.y);
ImGui::Text("%s", text);
ImGui::TextUnformatted(text);
ImGui::SameLine();
ImGui::SetCursorPosY(vpos);
}