1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-01 13:13:53 +00:00

Fix string handling.

This commit is contained in:
Bartosz Taudul 2018-08-31 20:08:04 +02:00
parent 0f72461c3e
commit 907da3265d

View File

@ -16,7 +16,7 @@ namespace tracy
{ {
const auto tw = ImGui::CalcTextSize( text ).x; const auto tw = ImGui::CalcTextSize( text ).x;
ImGui::SetCursorPosX( ( ImGui::GetWindowWidth() - tw ) * 0.5f ); ImGui::SetCursorPosX( ( ImGui::GetWindowWidth() - tw ) * 0.5f );
ImGui::Text( text ); ImGui::Text( "%s", text );
} }
} }