From c3bc0fa2e3ecac7089986b6e6c3739fc0c7470c6 Mon Sep 17 00:00:00 2001 From: Lionel Ulmer Date: Sat, 12 Feb 2000 13:20:20 +0000 Subject: [PATCH] Replaced fprintfs by proper debug macros and fixed some compilation warnings. --- graphics/d3dlight.c | 2 +- graphics/d3dmaterial.c | 2 +- graphics/d3dtexture.c | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/graphics/d3dlight.c b/graphics/d3dlight.c index c8dacd5389e..0b378b97226 100644 --- a/graphics/d3dlight.c +++ b/graphics/d3dlight.c @@ -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, diff --git a/graphics/d3dmaterial.c b/graphics/d3dmaterial.c index ee88f8d57ea..911619cc820 100644 --- a/graphics/d3dmaterial.c +++ b/graphics/d3dmaterial.c @@ -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, diff --git a/graphics/d3dtexture.c b/graphics/d3dtexture.c index 47e95bbe38a..34ff0aeda1e 100644 --- a/graphics/d3dtexture.c +++ b/graphics/d3dtexture.c @@ -26,6 +26,8 @@ DEFAULT_DEBUG_CHANNEL(ddraw) #undef TEXTURE_SNOOP #ifdef TEXTURE_SNOOP +#include + #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; }