Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
92434118
Commit
92434118
authored
Sep 13, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Make pixel format traces more compact.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3a5292eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
27 deletions
+5
-27
opengl.c
dlls/winex11.drv/opengl.c
+5
-27
No files found.
dlls/winex11.drv/opengl.c
View file @
92434118
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment