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
fc991b93
Commit
fc991b93
authored
Oct 31, 2019
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pixels.c: scope improvements
parent
6a02a679
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Pixels.c
nx-X11/programs/Xserver/hw/nxagent/Pixels.c
+4
-6
No files found.
nx-X11/programs/Xserver/hw/nxagent/Pixels.c
View file @
fc991b93
...
...
@@ -56,8 +56,6 @@ static int nxagentComparePixels(const void *p1, const void *p2)
int
nxagentUniquePixels
(
XImage
*
image
)
{
int
i
=
0
;
int
pixels
[
PIXEL_ELEMENTS
];
int
elements
=
PIXEL_ELEMENTS
;
...
...
@@ -140,7 +138,7 @@ int nxagentUniquePixels(XImage *image)
{
case
32
:
{
for
(
i
=
0
;
i
<
elements
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
elements
;
i
++
)
{
pixels
[
i
]
=
Get32
(
next
,
image
->
byte_order
);
...
...
@@ -156,7 +154,7 @@ int nxagentUniquePixels(XImage *image)
}
case
24
:
{
for
(
i
=
0
;
i
<
elements
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
elements
;
i
++
)
{
pixels
[
i
]
=
Get24
(
next
,
image
->
byte_order
);
...
...
@@ -181,7 +179,7 @@ int nxagentUniquePixels(XImage *image)
* the image data.
*/
for
(
i
=
0
;
i
<
elements
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
elements
;
i
++
)
{
pixels
[
i
]
=
Get16
(
next
,
image
->
byte_order
);
...
...
@@ -212,7 +210,7 @@ int nxagentUniquePixels(XImage *image)
qsort
(
pixels
,
elements
,
sizeof
(
int
),
nxagentComparePixels
);
for
(
i
=
0
;
i
<
elements
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
elements
;
i
++
)
{
if
(
last
!=
pixels
[
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