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