From 5fc049f8816c86968a97cbf47964654218c1dd28 Mon Sep 17 00:00:00 2001 From: Rokas Kupstys Date: Fri, 16 Jun 2017 19:15:34 +0300 Subject: [PATCH] Fix warnings --- Source/Atomic/UI/SystemUI/DebugHud.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); }