Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZhouShuya
OpenXG-RAN
Commits
b8093f50
Commit
b8093f50
authored
Aug 30, 2018
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T tracer: fix problem with some displays
This commit attempts to fix the error: no good visual found
parent
31e472d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
common/utils/T/tracer/gui/x.c
common/utils/T/tracer/gui/x.c
+11
-1
No files found.
common/utils/T/tracer/gui/x.c
View file @
b8093f50
...
@@ -150,7 +150,17 @@ x_image *x_create_image(x_connection *_x, unsigned char *data,
...
@@ -150,7 +150,17 @@ x_image *x_create_image(x_connection *_x, unsigned char *data,
vs
=
XGetVisualInfo
(
x
->
d
,
VisualDepthMask
|
VisualClassMask
|
vs
=
XGetVisualInfo
(
x
->
d
,
VisualDepthMask
|
VisualClassMask
|
VisualRedMaskMask
|
VisualGreenMaskMask
|
VisualBlueMaskMask
|
VisualRedMaskMask
|
VisualGreenMaskMask
|
VisualBlueMaskMask
|
VisualBitsPerRGBMask
,
&
template
,
&
nvs
);
VisualBitsPerRGBMask
,
&
template
,
&
nvs
);
if
(
vs
==
NULL
||
nvs
==
0
)
ERR
(
"no good visual found
\n
"
);
if
(
vs
==
NULL
)
{
/* try again with 32 bpp */
template
.
depth
=
32
;
vs
=
XGetVisualInfo
(
x
->
d
,
VisualDepthMask
|
VisualClassMask
|
VisualRedMaskMask
|
VisualGreenMaskMask
|
VisualBlueMaskMask
|
VisualBitsPerRGBMask
,
&
template
,
&
nvs
);
}
if
(
vs
==
NULL
)
ERR
(
"no good visual found
\n
"
);
v
=
vs
[
0
].
visual
;
v
=
vs
[
0
].
visual
;
XFree
(
vs
);
XFree
(
vs
);
...
...
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