Fix warnings

docking
ocornut 10 years ago
parent ea720963cf
commit 2a04c2a7bb

@ -7363,14 +7363,14 @@ void ImDrawList::ArcTo(const ImVec2& centre, float radius, float amin, float ama
void ImDrawList::Fill(ImU32 col) void ImDrawList::Fill(ImU32 col)
{ {
AddConvexPolyFilled(&path[0], path.size(), col); AddConvexPolyFilled(&path[0], (int)path.size(), col);
ClearPath(); ClearPath();
} }
void ImDrawList::Stroke(ImU32 col, bool closed) void ImDrawList::Stroke(ImU32 col, bool closed)
{ {
// Remove duplicates // Remove duplicates
AddPolyline(&path[0], path.size(), col, closed); AddPolyline(&path[0], (int)path.size(), col, closed);
ClearPath(); ClearPath();
} }
@ -9270,7 +9270,7 @@ void ImGui::ShowTestWindow(bool* opened)
ImGui::SameLine(); ImGui::SameLine();
ImGui::PushID("set2"); ImGui::PushID("set2");
for (size_t i = 0; i < 4; i++) for (int i = 0; i < 4; i++)
{ {
if (i > 0) ImGui::SameLine(0, 4); if (i > 0) ImGui::SameLine(0, 4);
ImGui::PushID(i); ImGui::PushID(i);

Loading…
Cancel
Save