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
06638575
Commit
06638575
authored
Jan 08, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Screen.c: formatting fixes
parent
66eea14c
Hide 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 @
06638575
...
...
@@ -3289,11 +3289,11 @@ FIXME: The port information is not used at the moment and produces a
{
local_buf
[
in
]
=
pszReturnData
[
i
];
if
(
pszReturnData
[
i
]
==
':'
)
if
(
pszReturnData
[
i
]
==
':'
)
{
i
++
;
while
(
pszReturnData
[
i
]
!=
'\n'
)
while
(
pszReturnData
[
i
]
!=
'\n'
)
{
unsigned
char
h
=
fromHexNibble
(
pszReturnData
[
i
]);
i
++
;
...
...
@@ -3302,7 +3302,8 @@ FIXME: The port information is not used at the moment and produces a
unsigned
char
l
=
fromHexNibble
(
pszReturnData
[
i
]);
i
++
;
if
(
h
>=
16
||
l
>=
16
)
continue
;
if
(
h
>=
16
||
l
>=
16
)
continue
;
/*
* FIXME: The array tchar[] was used uninitialized. It's
...
...
@@ -3349,7 +3350,7 @@ FIXME: The port information is not used at the moment and produces a
strcat
(
local_buf
,
"00"
);
in
+=
2
;
while
(
pszReturnData
[
i
]
!=
'\n'
)
while
(
pszReturnData
[
i
]
!=
'\n'
)
{
i
++
;
}
...
...
@@ -4011,9 +4012,9 @@ int nxagentAdjustRandRXinerama(ScreenPtr pScreen)
distinguish between pre-existing modes which should stay
and our own modes that should be removed after use. */
char
name
[
100
];
sprintf
(
name
,
"%s%dx%d"
,
QUOTE
(
NXAGENT_RANDR_MODE_PREFIX
),
new_w
,
new_h
);
sprintf
(
name
,
"%s%dx%d"
,
QUOTE
(
NXAGENT_RANDR_MODE_PREFIX
),
new_w
,
new_h
);
const
int
refresh
=
60
;
const
int
refresh
=
60
;
xRRModeInfo
modeInfo
=
{
.
width
=
new_w
,
...
...
@@ -4022,7 +4023,7 @@ int nxagentAdjustRandRXinerama(ScreenPtr pScreen)
.
vTotal
=
new_h
,
.
dotClock
=
((
CARD32
)
new_w
*
(
CARD32
)
new_h
*
(
CARD32
)
refresh
),
.
nameLength
=
strlen
(
name
)
};
};
RRModePtr
mymode
=
RRModeGet
(
&
modeInfo
,
name
);
...
...
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