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
f91f02d9
Commit
f91f02d9
authored
Sep 24, 2018
by
Ulrich Sibiller
Committed by
Mike Gabriel
Oct 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pixmap.c: use some Bools as Bools not integers
parent
1a8c4532
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Pixmap.c
nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
+8
-8
No files found.
nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
View file @
f91f02d9
...
...
@@ -860,10 +860,10 @@ void nxagentReconnectPixmap(void *p0, XID x1, void *p2)
Bool
*
pBool
=
(
Bool
*
)
p2
;
nxagentPrivPixmapPtr
pPixmapPriv
;
if
(
*
pBool
==
0
||
pPixmap
==
NULL
||
if
(
!*
pBool
||
pPixmap
==
NULL
||
NXDisplayError
(
nxagentDisplay
)
==
1
)
{
*
pBool
=
0
;
*
pBool
=
False
;
#ifdef TEST
fprintf
(
stderr
,
"nxagentReconnectPixmap: Ignoring pixmap at [%p] while "
...
...
@@ -929,7 +929,7 @@ void nxagentReconnectPixmap(void *p0, XID x1, void *p2)
nxagentSplitTrap
=
0
;
if
(
*
pBool
==
0
)
if
(
!*
pBool
)
{
#ifdef PANIC
fprintf
(
stderr
,
"nxagentReconnectPixmap: PANIC! Failed to synchronize the pixmap.
\n
"
);
...
...
@@ -1035,7 +1035,7 @@ static void nxagentCheckOnePixmapIntegrity(void *p0, XID x1, void *p2)
PixmapPtr
pPixmap
=
(
PixmapPtr
)
p0
;
Bool
*
pBool
=
(
Bool
*
)
p2
;
if
(
*
pBool
==
False
)
if
(
!*
pBool
)
{
return
;
}
...
...
@@ -1065,7 +1065,7 @@ static void nxagentCheckOnePixmapIntegrity(void *p0, XID x1, void *p2)
Bool
nxagentCheckPixmapIntegrity
(
PixmapPtr
pPixmap
)
{
Bool
integrity
=
1
;
Bool
integrity
=
True
;
XImage
*
image
;
char
*
data
;
int
format
;
...
...
@@ -1121,11 +1121,11 @@ Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap)
if
(
image
!=
NULL
&&
memcmp
(
image
->
data
,
data
,
length
)
!=
0
)
{
integrity
=
0
;
integrity
=
False
;
}
else
{
integrity
=
1
;
integrity
=
True
;
#ifdef TEST
fprintf
(
stderr
,
"nxagentCheckPixmapIntegrity: Pixmap at [%p] has been realized. "
...
...
@@ -1135,7 +1135,7 @@ Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap)
#ifdef WARNING
if
(
integrity
==
0
)
if
(
!
integrity
)
{
int
i
;
...
...
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