From 71e9f2a3dda18791999758311bbebf99e76440f6 Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 29 Jun 2015 15:46:18 -0600 Subject: [PATCH] Fixed warnings for 64-bits builds --- examples/directx11_example/imgui_impl_dx11.cpp | 2 +- examples/directx9_example/imgui_impl_dx9.cpp | 4 ++-- examples/opengl3_example/imgui_impl_glfw_gl3.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/directx11_example/imgui_impl_dx11.cpp b/examples/directx11_example/imgui_impl_dx11.cpp index 9388e894..1ba13690 100644 --- a/examples/directx11_example/imgui_impl_dx11.cpp +++ b/examples/directx11_example/imgui_impl_dx11.cpp @@ -135,7 +135,7 @@ static void ImGui_ImplDX11_RenderDrawLists(ImDrawList** const cmd_lists, int cmd } idx_offset += pcmd->idx_count; } - vtx_offset += cmd_list->vtx_buffer.size(); + vtx_offset += (int)cmd_list->vtx_buffer.size(); } // Restore modified state diff --git a/examples/directx9_example/imgui_impl_dx9.cpp b/examples/directx9_example/imgui_impl_dx9.cpp index 75453ded..2edb1875 100644 --- a/examples/directx9_example/imgui_impl_dx9.cpp +++ b/examples/directx9_example/imgui_impl_dx9.cpp @@ -119,11 +119,11 @@ static void ImGui_ImplDX9_RenderDrawLists(ImDrawList** const cmd_lists, int cmd_ const RECT r = { (LONG)pcmd->clip_rect.x, (LONG)pcmd->clip_rect.y, (LONG)pcmd->clip_rect.z, (LONG)pcmd->clip_rect.w }; g_pd3dDevice->SetTexture( 0, (LPDIRECT3DTEXTURE9)pcmd->texture_id ); g_pd3dDevice->SetScissorRect(&r); - g_pd3dDevice->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, vtx_offset, 0, cmd_list->vtx_buffer.size(), idx_offset, pcmd->idx_count/3); + g_pd3dDevice->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, vtx_offset, 0, (UINT)cmd_list->vtx_buffer.size(), idx_offset, pcmd->idx_count/3); } idx_offset += pcmd->idx_count; } - vtx_offset += cmd_list->vtx_buffer.size(); + vtx_offset += (int)cmd_list->vtx_buffer.size(); } } diff --git a/examples/opengl3_example/imgui_impl_glfw_gl3.cpp b/examples/opengl3_example/imgui_impl_glfw_gl3.cpp index 8658b218..e3dcfdc1 100644 --- a/examples/opengl3_example/imgui_impl_glfw_gl3.cpp +++ b/examples/opengl3_example/imgui_impl_glfw_gl3.cpp @@ -107,7 +107,7 @@ static void ImGui_ImplGlfwGL3_RenderDrawLists(ImDrawList** const cmd_lists, int } idx_buffer += pcmd->idx_count; } - vtx_offset += cmd_list->vtx_buffer.size(); + vtx_offset += (int)cmd_list->vtx_buffer.size(); } // Restore modified state