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
c36efbd3
Commit
c36efbd3
authored
Jul 26, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Sep 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Screen.c: scope improvements
parent
fc7cb865
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+8
-7
No files found.
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
c36efbd3
...
@@ -891,7 +891,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
...
@@ -891,7 +891,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
VisualPtr
visuals
;
VisualPtr
visuals
;
DepthPtr
depths
;
DepthPtr
depths
;
int
numVisuals
,
numDepths
;
int
numVisuals
,
numDepths
;
int
i
,
j
,
depthIndex
;
int
depthIndex
;
unsigned
long
valuemask
;
unsigned
long
valuemask
;
XSetWindowAttributes
attributes
;
XSetWindowAttributes
attributes
;
XWindowAttributes
gattributes
;
XWindowAttributes
gattributes
;
...
@@ -1221,7 +1221,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
...
@@ -1221,7 +1221,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
depths
=
(
DepthPtr
)
malloc
(
nxagentNumDepths
*
sizeof
(
DepthRec
));
depths
=
(
DepthPtr
)
malloc
(
nxagentNumDepths
*
sizeof
(
DepthRec
));
for
(
i
=
0
;
i
<
nxagentNumDepths
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
nxagentNumDepths
;
i
++
)
{
{
depths
[
i
].
depth
=
nxagentDepths
[
i
];
depths
[
i
].
depth
=
nxagentDepths
[
i
];
depths
[
i
].
numVids
=
0
;
depths
[
i
].
numVids
=
0
;
...
@@ -1242,7 +1242,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
...
@@ -1242,7 +1242,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
visuals
=
(
VisualPtr
)
malloc
(
nxagentNumVisuals
*
sizeof
(
VisualRec
));
visuals
=
(
VisualPtr
)
malloc
(
nxagentNumVisuals
*
sizeof
(
VisualRec
));
for
(
i
=
0
;
i
<
nxagentNumVisuals
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
nxagentNumVisuals
;
i
++
)
{
{
visuals
[
numVisuals
].
vid
=
FakeClientID
(
0
);
visuals
[
numVisuals
].
vid
=
FakeClientID
(
0
);
visuals
[
numVisuals
].
class
=
nxagentVisuals
[
i
].
class
;
visuals
[
numVisuals
].
class
=
nxagentVisuals
[
i
].
class
;
...
@@ -1271,6 +1271,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
...
@@ -1271,6 +1271,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
}
}
else
else
{
{
int
j
;
for
(
j
=
0
;
j
<
numVisuals
;
j
++
)
for
(
j
=
0
;
j
<
numVisuals
;
j
++
)
{
{
if
(
visuals
[
numVisuals
].
class
==
visuals
[
j
].
class
&&
if
(
visuals
[
numVisuals
].
class
==
visuals
[
j
].
class
&&
...
@@ -1300,7 +1301,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
...
@@ -1300,7 +1301,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
(
long
unsigned
int
)
visuals
[
numVisuals
].
vid
);
(
long
unsigned
int
)
visuals
[
numVisuals
].
vid
);
#endif
#endif
for
(
j
=
0
;
j
<
numDepths
;
j
++
)
for
(
int
j
=
0
;
j
<
numDepths
;
j
++
)
{
{
if
(
depths
[
j
].
depth
==
nxagentVisuals
[
i
].
depth
)
if
(
depths
[
j
].
depth
==
nxagentVisuals
[
i
].
depth
)
{
{
...
@@ -1461,7 +1462,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
...
@@ -1461,7 +1462,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
* pixmap for each depth.
* pixmap for each depth.
*/
*/
for
(
i
=
0
;
i
<
numDepths
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
numDepths
;
i
++
)
{
{
nxagentMarkPlaceholderNotLoaded
(
i
);
nxagentMarkPlaceholderNotLoaded
(
i
);
}
}
...
@@ -2581,7 +2582,6 @@ void nxagentShadowSetWindowOptions(void)
...
@@ -2581,7 +2582,6 @@ void nxagentShadowSetWindowOptions(void)
int
nxagentShadowInit
(
ScreenPtr
pScreen
,
WindowPtr
pWin
)
int
nxagentShadowInit
(
ScreenPtr
pScreen
,
WindowPtr
pWin
)
{
{
int
i
;
char
*
layout
=
NULL
;
char
*
layout
=
NULL
;
extern
char
*
nxagentKeyboard
;
extern
char
*
nxagentKeyboard
;
XlibGC
gc
;
XlibGC
gc
;
...
@@ -2604,6 +2604,7 @@ int nxagentShadowInit(ScreenPtr pScreen, WindowPtr pWin)
...
@@ -2604,6 +2604,7 @@ int nxagentShadowInit(ScreenPtr pScreen, WindowPtr pWin)
if
(
nxagentKeyboard
!=
NULL
)
if
(
nxagentKeyboard
!=
NULL
)
{
{
int
i
;
for
(
i
=
0
;
nxagentKeyboard
[
i
]
!=
'/'
&&
nxagentKeyboard
[
i
]
!=
0
;
i
++
);
for
(
i
=
0
;
nxagentKeyboard
[
i
]
!=
'/'
&&
nxagentKeyboard
[
i
]
!=
0
;
i
++
);
if
(
nxagentKeyboard
[
i
]
==
0
||
nxagentKeyboard
[
i
+
1
]
==
0
||
i
==
0
)
if
(
nxagentKeyboard
[
i
]
==
0
||
nxagentKeyboard
[
i
+
1
]
==
0
||
i
==
0
)
...
@@ -3427,7 +3428,6 @@ void nxagentPropagateArtsdProperties(ScreenPtr pScreen, char *port)
...
@@ -3427,7 +3428,6 @@ void nxagentPropagateArtsdProperties(ScreenPtr pScreen, char *port)
unsigned
char
*
pszReturnData
=
NULL
;
unsigned
char
*
pszReturnData
=
NULL
;
int
iReturn
;
int
iReturn
;
int
i
,
in
;
char
tchar
[]
=
" "
;
char
tchar
[]
=
" "
;
/*
/*
FIXME: The port information is not used at the moment and produces a
FIXME: The port information is not used at the moment and produces a
...
@@ -3480,6 +3480,7 @@ FIXME: The port information is not used at the moment and produces a
...
@@ -3480,6 +3480,7 @@ FIXME: The port information is not used at the moment and produces a
{
{
memset
(
local_buf
,
0
,
strlen
((
char
*
)
pszReturnData
));
memset
(
local_buf
,
0
,
strlen
((
char
*
)
pszReturnData
));
int
i
,
in
;
for
(
i
=
0
,
in
=
0
;
pszReturnData
[
i
]
!=
'\0'
;
i
++
)
for
(
i
=
0
,
in
=
0
;
pszReturnData
[
i
]
!=
'\0'
;
i
++
)
{
{
local_buf
[
in
]
=
pszReturnData
[
i
];
local_buf
[
in
]
=
pszReturnData
[
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