st/wgl: silence some debug

This commit is contained in:
Keith Whitwell 2009-02-24 12:00:47 +00:00
parent 93d101f0c3
commit b1ac00dc8d
1 changed files with 29 additions and 15 deletions

View File

@ -36,6 +36,7 @@
#include "shared/stw_public.h" #include "shared/stw_public.h"
#include "icd/stw_icd.h" #include "icd/stw_icd.h"
#define DBG 0
static GLCLTPROCTABLE cpt; static GLCLTPROCTABLE cpt;
static boolean cpt_initialized = FALSE; static boolean cpt_initialized = FALSE;
@ -81,7 +82,8 @@ DrvDescribeLayerPlane(
UINT nBytes, UINT nBytes,
LPLAYERPLANEDESCRIPTOR plpd ) LPLAYERPLANEDESCRIPTOR plpd )
{ {
debug_printf( "%s\n", __FUNCTION__ ); if (DBG)
debug_printf( "%s\n", __FUNCTION__ );
return FALSE; return FALSE;
} }
@ -97,8 +99,9 @@ DrvDescribePixelFormat(
r = stw_pixelformat_describe( hdc, iPixelFormat, cjpfd, ppfd ); r = stw_pixelformat_describe( hdc, iPixelFormat, cjpfd, ppfd );
debug_printf( "%s( %p, %d, %u, %p ) = %d\n", if (DBG)
__FUNCTION__, hdc, iPixelFormat, cjpfd, ppfd, r ); debug_printf( "%s( %p, %d, %u, %p ) = %d\n",
__FUNCTION__, hdc, iPixelFormat, cjpfd, ppfd, r );
return r; return r;
} }
@ -111,7 +114,8 @@ DrvGetLayerPaletteEntries(
INT cEntries, INT cEntries,
COLORREF *pcr ) COLORREF *pcr )
{ {
debug_printf( "%s\n", __FUNCTION__ ); if (DBG)
debug_printf( "%s\n", __FUNCTION__ );
return 0; return 0;
} }
@ -124,7 +128,8 @@ DrvGetProcAddress(
r = stw_get_proc_address( lpszProc ); r = stw_get_proc_address( lpszProc );
debug_printf( "%s( \", __FUNCTION__%s\" ) = %p\n", lpszProc, r ); if (DBG)
debug_printf( "%s( \", __FUNCTION__%s\" ) = %p\n", lpszProc, r );
return r; return r;
} }
@ -135,7 +140,8 @@ DrvRealizeLayerPalette(
INT iLayerPlane, INT iLayerPlane,
BOOL bRealize ) BOOL bRealize )
{ {
debug_printf( "%s\n", __FUNCTION__ ); if (DBG)
debug_printf( "%s\n", __FUNCTION__ );
return FALSE; return FALSE;
} }
@ -152,7 +158,8 @@ DrvSetCallbackProcs(
INT nProcs, INT nProcs,
PROC *pProcs ) PROC *pProcs )
{ {
debug_printf( "%s( %d, %p )\n", __FUNCTION__, nProcs, pProcs ); if (DBG)
debug_printf( "%s( %d, %p )\n", __FUNCTION__, nProcs, pProcs );
return; return;
} }
@ -510,8 +517,9 @@ DrvSetContext(
DHGLRC dhglrc, DHGLRC dhglrc,
PFN_SETPROCTABLE pfnSetProcTable ) PFN_SETPROCTABLE pfnSetProcTable )
{ {
debug_printf( "%s( 0x%p, %u, 0x%p )\n", if (DBG)
__FUNCTION__, hdc, dhglrc, pfnSetProcTable ); debug_printf( "%s( 0x%p, %u, 0x%p )\n",
__FUNCTION__, hdc, dhglrc, pfnSetProcTable );
/* Although WGL allows different dispatch entrypoints per /* Although WGL allows different dispatch entrypoints per
*/ */
@ -534,7 +542,8 @@ DrvSetLayerPaletteEntries(
INT cEntries, INT cEntries,
CONST COLORREF *pcr ) CONST COLORREF *pcr )
{ {
debug_printf( "%s\n", __FUNCTION__ ); if (DBG)
debug_printf( "%s\n", __FUNCTION__ );
return 0; return 0;
} }
@ -548,7 +557,8 @@ DrvSetPixelFormat(
r = stw_pixelformat_set( hdc, iPixelFormat ); r = stw_pixelformat_set( hdc, iPixelFormat );
debug_printf( "%s( %p, %d ) = %s\n", __FUNCTION__, hdc, iPixelFormat, r ? "TRUE" : "FALSE" ); if (DBG)
debug_printf( "%s( %p, %d ) = %s\n", __FUNCTION__, hdc, iPixelFormat, r ? "TRUE" : "FALSE" );
return r; return r;
} }
@ -558,7 +568,8 @@ DrvShareLists(
DHGLRC dhglrc1, DHGLRC dhglrc1,
DHGLRC dhglrc2 ) DHGLRC dhglrc2 )
{ {
debug_printf( "%s\n", __FUNCTION__ ); if (DBG)
debug_printf( "%s\n", __FUNCTION__ );
return FALSE; return FALSE;
} }
@ -567,7 +578,8 @@ BOOL APIENTRY
DrvSwapBuffers( DrvSwapBuffers(
HDC hdc ) HDC hdc )
{ {
debug_printf( "%s( %p )\n", __FUNCTION__, hdc ); if (DBG)
debug_printf( "%s( %p )\n", __FUNCTION__, hdc );
return stw_swap_buffers( hdc ); return stw_swap_buffers( hdc );
} }
@ -577,7 +589,8 @@ DrvSwapLayerBuffers(
HDC hdc, HDC hdc,
UINT fuPlanes ) UINT fuPlanes )
{ {
debug_printf( "%s\n", __FUNCTION__ ); if (DBG)
debug_printf( "%s\n", __FUNCTION__ );
return FALSE; return FALSE;
} }
@ -586,7 +599,8 @@ BOOL APIENTRY
DrvValidateVersion( DrvValidateVersion(
ULONG ulVersion ) ULONG ulVersion )
{ {
debug_printf( "%s( %u )\n", __FUNCTION__, ulVersion ); if (DBG)
debug_printf( "%s( %u )\n", __FUNCTION__, ulVersion );
/* TODO: get the expected version from the winsys */ /* TODO: get the expected version from the winsys */