Replaced fprintfs by proper debug macros and fixed some compilation warnings.
This commit is contained in:
parent
ef9067531b
commit
c3bc0fa2e3
|
@ -178,7 +178,7 @@ static ULONG WINAPI IDirect3DLightImpl_Release(LPDIRECT3DLIGHT iface)
|
|||
/*** IDirect3DLight methods ***/
|
||||
static void dump_light(LPD3DLIGHT light)
|
||||
{
|
||||
fprintf(stderr, " dwSize : %ld\n", light->dwSize);
|
||||
DPRINTF(" dwSize : %ld\n", light->dwSize);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI IDirect3DLightImpl_GetLight(LPDIRECT3DLIGHT iface,
|
||||
|
|
|
@ -139,7 +139,7 @@ static ULONG WINAPI IDirect3DMaterial2Impl_Release(LPDIRECT3DMATERIAL2 iface)
|
|||
/*** IDirect3DMaterial2 methods ***/
|
||||
static void dump_material(LPD3DMATERIAL mat)
|
||||
{
|
||||
fprintf(stderr, " dwSize : %ld\n", mat->dwSize);
|
||||
DPRINTF(" dwSize : %ld\n", mat->dwSize);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI IDirect3DMaterial2Impl_GetMaterial(LPDIRECT3DMATERIAL2 iface,
|
||||
|
|
|
@ -26,6 +26,8 @@ DEFAULT_DEBUG_CHANNEL(ddraw)
|
|||
#undef TEXTURE_SNOOP
|
||||
|
||||
#ifdef TEXTURE_SNOOP
|
||||
#include <stdio.h>
|
||||
|
||||
#define SNOOP_PALETTED() \
|
||||
{ \
|
||||
FILE *f; \
|
||||
|
@ -280,7 +282,7 @@ static HRESULT WINAPI IDirect3DTextureImpl_GetHandle(LPDIRECT3DTEXTURE iface,
|
|||
glGenTextures(1, &(This->tex_name));
|
||||
LEAVE_GL();
|
||||
|
||||
TRACE("OpenGL texture handle is : %d\n", This->tex_name);
|
||||
TRACE("OpenGL texture handle is : %ld\n", This->tex_name);
|
||||
|
||||
return D3D_OK;
|
||||
}
|
||||
|
@ -323,7 +325,7 @@ static HRESULT WINAPI IDirect3DTexture2Impl_GetHandle(LPDIRECT3DTEXTURE2 iface,
|
|||
glGenTextures(1, &(This->tex_name));
|
||||
LEAVE_GL();
|
||||
|
||||
TRACE("OpenGL texture handle is : %d\n", This->tex_name);
|
||||
TRACE("OpenGL texture handle is : %ld\n", This->tex_name);
|
||||
|
||||
return D3D_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue