ddraw: Sign-compare warnings fix.

This commit is contained in:
Andrew Talbot 2008-09-27 17:35:03 +01:00 committed by Alexandre Julliard
parent 9b81945aeb
commit a697d99d66
4 changed files with 7 additions and 7 deletions

View File

@ -1842,7 +1842,7 @@ D3D7CB_CreateSurface(IUnknown *device,
{
ICOM_THIS_FROM(IDirectDrawImpl, IDirectDraw7, device);
IDirectDrawSurfaceImpl *surf = NULL;
int i = 0;
UINT i = 0;
DDSCAPS2 searchcaps = This->tex_root->surface_desc.ddsCaps;
TRACE("(%p) call back. surf=%p. Face %d level %d\n", device, This->tex_root, Face, level);

View File

@ -1165,7 +1165,7 @@ IDirect3DDeviceImpl_7_EnumTextureFormats(IDirect3DDevice7 *iface,
ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice7, iface);
HRESULT hr;
WINED3DDISPLAYMODE mode;
int i;
unsigned int i;
WINED3DFORMAT FormatList[] = {
/* 32 bit */
@ -1328,7 +1328,7 @@ IDirect3DDeviceImpl_2_EnumTextureFormats(IDirect3DDevice2 *iface,
{
ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice2, iface);
HRESULT hr;
int i;
unsigned int i;
WINED3DDISPLAYMODE mode;
WINED3DFORMAT FormatList[] = {
@ -3982,7 +3982,7 @@ IDirect3DDeviceImpl_7_DrawPrimitiveStrided(IDirect3DDevice7 *iface,
{
ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice7, iface);
WineDirect3DVertexStridedData WineD3DStrided;
int i;
DWORD i;
UINT PrimitiveCount;
HRESULT hr;
@ -4160,7 +4160,7 @@ IDirect3DDeviceImpl_7_DrawIndexedPrimitiveStrided(IDirect3DDevice7 *iface,
{
ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice7, iface);
WineDirect3DVertexStridedData WineD3DStrided;
int i;
DWORD i;
UINT PrimitiveCount;
HRESULT hr;

View File

@ -1138,7 +1138,7 @@ IDirect3DImpl_7_EnumZBufferFormats(IDirect3D7 *iface,
{
ICOM_THIS_FROM(IDirectDrawImpl, IDirect3D7, iface);
HRESULT hr;
int i;
unsigned int i;
WINED3DDISPLAYMODE d3ddm;
WINED3DDEVTYPE type;

View File

@ -902,7 +902,7 @@ DWORD
get_flexible_vertex_size(DWORD d3dvtVertexType)
{
DWORD size = 0;
int i;
DWORD i;
if (d3dvtVertexType & D3DFVF_NORMAL) size += 3 * sizeof(D3DVALUE);
if (d3dvtVertexType & D3DFVF_DIFFUSE) size += sizeof(DWORD);