Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
7b8aef83
Commit
7b8aef83
authored
Sep 24, 2018
by
Ulrich Sibiller
Committed by
Mike Gabriel
Oct 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nxagentInitAndCheckVisuals: adapt bool usage to match the previous function
One question remains: why are we using "bool" instead of "Bool" here?
parent
67432ac2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
Display.c
nx-X11/programs/Xserver/hw/nxagent/Display.c
+7
-9
No files found.
nx-X11/programs/Xserver/hw/nxagent/Display.c
View file @
7b8aef83
...
...
@@ -2492,12 +2492,10 @@ static int nxagentInitAndCheckVisuals(int flexibility)
long
viMask
;
int
i
,
n
;
int
matched
;
int
compatibl
e
;
bool
matched
;
bool
compatible
=
tru
e
;
int
viNumList
;
compatible
=
1
;
viMask
=
VisualScreenMask
;
viTemplate
.
screen
=
DefaultScreen
(
nxagentDisplay
);
viTemplate
.
depth
=
DefaultDepth
(
nxagentDisplay
,
DefaultScreen
(
nxagentDisplay
));
...
...
@@ -2507,7 +2505,7 @@ static int nxagentInitAndCheckVisuals(int flexibility)
for
(
i
=
0
;
i
<
nxagentNumVisuals
;
i
++
)
{
matched
=
0
;
matched
=
false
;
for
(
n
=
0
;
n
<
viNumList
;
n
++
)
{
...
...
@@ -2528,7 +2526,7 @@ FIXME: Should the visual be ignored in this case?
#endif
}
matched
=
1
;
matched
=
true
;
nxagentVisualHasBeenIgnored
[
i
]
=
FALSE
;
...
...
@@ -2538,7 +2536,7 @@ FIXME: Should the visual be ignored in this case?
}
}
if
(
matched
==
0
)
if
(
!
matched
)
{
if
(
nxagentVisuals
[
i
].
class
==
DirectColor
)
{
...
...
@@ -2564,7 +2562,7 @@ FIXME: Should the visual be ignored in this case?
fprintf
(
stderr
,
"
\t
bits_per_rgb = %d
\n
"
,
nxagentVisuals
[
i
].
bits_per_rgb
);
#endif
compatible
=
0
;
compatible
=
false
;
break
;
}
...
...
@@ -2573,7 +2571,7 @@ FIXME: Should the visual be ignored in this case?
XFree
(
viList
);
if
(
compatible
==
1
)
if
(
compatible
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentInitAndCheckVisuals: New visuals match with old visuals.
\n
"
);
...
...
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