diff --git a/Source/Atomic/UI/SystemUI/DebugHud.cpp b/Source/Atomic/UI/SystemUI/DebugHud.cpp index b259fe5c5f..8971c5d44d 100644 --- a/Source/Atomic/UI/SystemUI/DebugHud.cpp +++ b/Source/Atomic/UI/SystemUI/DebugHud.cpp @@ -325,10 +325,10 @@ void DebugHud::RenderUi(StringHash eventType, VariantMap& eventData) profilerOutput_ = "Metrics subsystem not found"; } auto size = ImGui::CalcTextSize(profilerOutput_.CString()); - sizeProfiler_ = IntVector2(size.x + 20, size.y + 20); - posProfiler_ = WithinExtents({-(size.x + 20), 0}); + sizeProfiler_ = IntVector2((int)size.x + 20, (int)size.y + 20); + posProfiler_ = WithinExtents({-((int)size.x + 20), 0}); } - ImGui::Text(profilerOutput_.CString()); + ImGui::TextUnformatted(profilerOutput_.CString()); } ImGui::End(); }