Browse Source

Fix warnings

Rokas Kupstys 8 years ago
parent
commit
5fc049f881
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Source/Atomic/UI/SystemUI/DebugHud.cpp

+ 3 - 3
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();
     }