Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
James Carthew
wine
Commits
92434118
Commit
92434118
authored
6 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
winex11: Make pixel format traces more compact.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3a5292eb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/winex11.drv/opengl.c
+5
-27
5 additions, 27 deletions
dlls/winex11.drv/opengl.c
with
5 additions
and
27 deletions
dlls/winex11.drv/opengl.c
+
5
−
27
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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment