1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-13 22:48:50 -05:00

Fix compiler warning in implot_demo.cpp

implot_demo.cpp:1012:69: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
This commit is contained in:
Peter Johnson 2020-08-15 23:47:18 -07:00
parent 4db63635fb
commit a5d1f85040
No known key found for this signature in database
GPG Key ID: D39DD4DA7D41E329

View File

@ -1009,7 +1009,7 @@ void ShowDemoWindow(bool* p_open) {
static BenchmarkItem items[n_items];
ImGui::BulletText("Make sure VSync is disabled.");
ImGui::BulletText("%d lines with %d points each @ %.3f FPS.",n_items,1000,ImGui::GetIO().Framerate);
ImGui::BulletText("ImDrawIdx: %d-bit", sizeof(ImDrawIdx) * 8);
ImGui::BulletText("ImDrawIdx: %d-bit", (int)(sizeof(ImDrawIdx) * 8));
ImGui::BulletText("ImGuiBackendFlags_RendererHasVtxOffset: %s", (ImGui::GetIO().BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset) ? "True" : "False");
ImGui::BulletText("If you see visual artifacts, do one of the following:");
ImGui::Indent();