Alexandre Julliard : winex11: Make pixel format traces more compact.
Alexandre Julliard
julliard at winehq.org
Thu Sep 13 15:14:47 CDT 2018
Module: wine
Branch: master
Commit: 92434118375ae725c835d012751cf0e06565c950
URL: https://source.winehq.org/git/wine.git/?a=commit;h=92434118375ae725c835d012751cf0e06565c950
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Sep 13 16:17:37 2018 +0200
winex11: Make pixel format traces more compact.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winex11.drv/opengl.c | 32 +++++---------------------------
1 file changed, 5 insertions(+), 27 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 7aa6448..0b0fd51 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -297,8 +297,11 @@ static void init_pixel_formats( Display *display );
static BOOL glxRequireVersion(int requiredVersion);
static void dump_PIXELFORMATDESCRIPTOR(const PIXELFORMATDESCRIPTOR *ppfd) {
- TRACE(" - size / version : %d / %d\n", ppfd->nSize, ppfd->nVersion);
- TRACE(" - dwFlags : ");
+ TRACE( "size %u version %u flags %u type %u color %u %u,%u,%u,%u "
+ "accum %u depth %u stencil %u aux %u ",
+ ppfd->nSize, ppfd->nVersion, ppfd->dwFlags, ppfd->iPixelType,
+ ppfd->cColorBits, ppfd->cRedBits, ppfd->cGreenBits, ppfd->cBlueBits, ppfd->cAlphaBits,
+ ppfd->cAccumBits, ppfd->cDepthBits, ppfd->cStencilBits, ppfd->cAuxBuffers );
#define TEST_AND_DUMP(t,tv) if ((t) & (tv)) TRACE(#tv " ")
TEST_AND_DUMP(ppfd->dwFlags, PFD_DEPTH_DONTCARE);
TEST_AND_DUMP(ppfd->dwFlags, PFD_DOUBLEBUFFER);
@@ -321,31 +324,6 @@ static void dump_PIXELFORMATDESCRIPTOR(const PIXELFORMATDESCRIPTOR *ppfd) {
TEST_AND_DUMP(ppfd->dwFlags, PFD_SUPPORT_COMPOSITION);
#undef TEST_AND_DUMP
TRACE("\n");
-
- TRACE(" - iPixelType : ");
- switch (ppfd->iPixelType) {
- case PFD_TYPE_RGBA: TRACE("PFD_TYPE_RGBA"); break;
- case PFD_TYPE_COLORINDEX: TRACE("PFD_TYPE_COLORINDEX"); break;
- }
- TRACE("\n");
-
- TRACE(" - Color : %d\n", ppfd->cColorBits);
- TRACE(" - Red : %d\n", ppfd->cRedBits);
- TRACE(" - Green : %d\n", ppfd->cGreenBits);
- TRACE(" - Blue : %d\n", ppfd->cBlueBits);
- TRACE(" - Alpha : %d\n", ppfd->cAlphaBits);
- TRACE(" - Accum : %d\n", ppfd->cAccumBits);
- TRACE(" - Depth : %d\n", ppfd->cDepthBits);
- TRACE(" - Stencil : %d\n", ppfd->cStencilBits);
- TRACE(" - Aux : %d\n", ppfd->cAuxBuffers);
-
- TRACE(" - iLayerType : ");
- switch (ppfd->iLayerType) {
- case PFD_MAIN_PLANE: TRACE("PFD_MAIN_PLANE"); break;
- case PFD_OVERLAY_PLANE: TRACE("PFD_OVERLAY_PLANE"); break;
- case (BYTE)PFD_UNDERLAY_PLANE: TRACE("PFD_UNDERLAY_PLANE"); break;
- }
- TRACE("\n");
}
#define PUSH1(attribs,att) do { attribs[nAttribs++] = (att); } while (0)
More information about the wine-cvs
mailing list