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,6 +82,7 @@ DrvDescribeLayerPlane(
UINT nBytes, UINT nBytes,
LPLAYERPLANEDESCRIPTOR plpd ) LPLAYERPLANEDESCRIPTOR plpd )
{ {
if (DBG)
debug_printf( "%s\n", __FUNCTION__ ); debug_printf( "%s\n", __FUNCTION__ );
return FALSE; return FALSE;
@ -97,6 +99,7 @@ DrvDescribePixelFormat(
r = stw_pixelformat_describe( hdc, iPixelFormat, cjpfd, ppfd ); r = stw_pixelformat_describe( hdc, iPixelFormat, cjpfd, ppfd );
if (DBG)
debug_printf( "%s( %p, %d, %u, %p ) = %d\n", debug_printf( "%s( %p, %d, %u, %p ) = %d\n",
__FUNCTION__, hdc, iPixelFormat, cjpfd, ppfd, r ); __FUNCTION__, hdc, iPixelFormat, cjpfd, ppfd, r );
@ -111,6 +114,7 @@ DrvGetLayerPaletteEntries(
INT cEntries, INT cEntries,
COLORREF *pcr ) COLORREF *pcr )
{ {
if (DBG)
debug_printf( "%s\n", __FUNCTION__ ); debug_printf( "%s\n", __FUNCTION__ );
return 0; return 0;
@ -124,6 +128,7 @@ DrvGetProcAddress(
r = stw_get_proc_address( lpszProc ); r = stw_get_proc_address( lpszProc );
if (DBG)
debug_printf( "%s( \", __FUNCTION__%s\" ) = %p\n", lpszProc, r ); debug_printf( "%s( \", __FUNCTION__%s\" ) = %p\n", lpszProc, r );
return r; return r;
@ -135,6 +140,7 @@ DrvRealizeLayerPalette(
INT iLayerPlane, INT iLayerPlane,
BOOL bRealize ) BOOL bRealize )
{ {
if (DBG)
debug_printf( "%s\n", __FUNCTION__ ); debug_printf( "%s\n", __FUNCTION__ );
return FALSE; return FALSE;
@ -152,6 +158,7 @@ DrvSetCallbackProcs(
INT nProcs, INT nProcs,
PROC *pProcs ) PROC *pProcs )
{ {
if (DBG)
debug_printf( "%s( %d, %p )\n", __FUNCTION__, nProcs, pProcs ); debug_printf( "%s( %d, %p )\n", __FUNCTION__, nProcs, pProcs );
return; return;
@ -510,6 +517,7 @@ DrvSetContext(
DHGLRC dhglrc, DHGLRC dhglrc,
PFN_SETPROCTABLE pfnSetProcTable ) PFN_SETPROCTABLE pfnSetProcTable )
{ {
if (DBG)
debug_printf( "%s( 0x%p, %u, 0x%p )\n", debug_printf( "%s( 0x%p, %u, 0x%p )\n",
__FUNCTION__, hdc, dhglrc, pfnSetProcTable ); __FUNCTION__, hdc, dhglrc, pfnSetProcTable );
@ -534,6 +542,7 @@ DrvSetLayerPaletteEntries(
INT cEntries, INT cEntries,
CONST COLORREF *pcr ) CONST COLORREF *pcr )
{ {
if (DBG)
debug_printf( "%s\n", __FUNCTION__ ); debug_printf( "%s\n", __FUNCTION__ );
return 0; return 0;
@ -548,6 +557,7 @@ DrvSetPixelFormat(
r = stw_pixelformat_set( hdc, iPixelFormat ); r = stw_pixelformat_set( hdc, iPixelFormat );
if (DBG)
debug_printf( "%s( %p, %d ) = %s\n", __FUNCTION__, hdc, iPixelFormat, r ? "TRUE" : "FALSE" ); debug_printf( "%s( %p, %d ) = %s\n", __FUNCTION__, hdc, iPixelFormat, r ? "TRUE" : "FALSE" );
return r; return r;
@ -558,6 +568,7 @@ DrvShareLists(
DHGLRC dhglrc1, DHGLRC dhglrc1,
DHGLRC dhglrc2 ) DHGLRC dhglrc2 )
{ {
if (DBG)
debug_printf( "%s\n", __FUNCTION__ ); debug_printf( "%s\n", __FUNCTION__ );
return FALSE; return FALSE;
@ -567,6 +578,7 @@ BOOL APIENTRY
DrvSwapBuffers( DrvSwapBuffers(
HDC hdc ) HDC hdc )
{ {
if (DBG)
debug_printf( "%s( %p )\n", __FUNCTION__, hdc ); debug_printf( "%s( %p )\n", __FUNCTION__, hdc );
return stw_swap_buffers( hdc ); return stw_swap_buffers( hdc );
@ -577,6 +589,7 @@ DrvSwapLayerBuffers(
HDC hdc, HDC hdc,
UINT fuPlanes ) UINT fuPlanes )
{ {
if (DBG)
debug_printf( "%s\n", __FUNCTION__ ); debug_printf( "%s\n", __FUNCTION__ );
return FALSE; return FALSE;
@ -586,6 +599,7 @@ BOOL APIENTRY
DrvValidateVersion( DrvValidateVersion(
ULONG ulVersion ) ULONG ulVersion )
{ {
if (DBG)
debug_printf( "%s( %u )\n", __FUNCTION__, ulVersion ); debug_printf( "%s( %u )\n", __FUNCTION__, ulVersion );
/* TODO: get the expected version from the winsys */ /* TODO: get the expected version from the winsys */