Fixed warnings for 64-bits builds

This commit is contained in:
ocornut 2015-06-29 15:46:18 -06:00
parent 43dcd6ef47
commit 71e9f2a3dd
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

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

View File

@ -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