mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-18 06:06:35 +00:00
Fixed warnings for 64-bits builds
This commit is contained in:
parent
43dcd6ef47
commit
71e9f2a3dd
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user