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
92589f41
Commit
92589f41
authored
Dec 03, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXshm.c: cleanup nxagent_fbShmCreatePixmap
... to match it as closely as possible to the upstream version.
parent
b4b0a1a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
17 deletions
+20
-17
NXshm.c
nx-X11/programs/Xserver/hw/nxagent/NXshm.c
+20
-17
No files found.
nx-X11/programs/Xserver/hw/nxagent/NXshm.c
View file @
92589f41
...
...
@@ -389,7 +389,7 @@ ProcShmPutImage(client)
return
(
client
->
noClientException
);
}
/* derived from Xext/shm.c */
static
PixmapPtr
nxagent_fbShmCreatePixmap
(
pScreen
,
width
,
height
,
depth
,
addr
)
ScreenPtr
pScreen
;
...
...
@@ -400,29 +400,22 @@ nxagent_fbShmCreatePixmap (pScreen, width, height, depth, addr)
{
register
PixmapPtr
pPixmap
;
#ifdef NXAGENT_SERVER
pPixmap
=
(
*
pScreen
->
CreatePixmap
)(
pScreen
,
width
,
height
,
depth
,
0
);
#else
pPixmap
=
(
*
pScreen
->
CreatePixmap
)(
pScreen
,
0
,
0
,
pScreen
->
rootDepth
,
0
);
#endif
if
(
!
pPixmap
)
{
return
NullPixmap
;
return
NullPixmap
;
}
#if defined(NXAGENT_SERVER) && defined(TEST)
fprintf
(
stderr
,
"fbShmCreatePixmap: Width [%d] Height [%d] Depth [%d] Hint[%d]
\n
"
,
width
,
height
,
depth
,
0
);
#endif
if
(
!
(
*
pScreen
->
ModifyPixmapHeader
)(
pPixmap
,
width
,
height
,
depth
,
BitsPerPixel
(
depth
),
PixmapBytePad
(
width
,
depth
),
(
void
*
)
addr
))
{
#if defined(NXAGENT_SERVER) && defined(WARNING)
fprintf
(
stderr
,
"fbShmCreatePixmap: Return Null Pixmap.
\n
"
);
#endif
(
*
pScreen
->
DestroyPixmap
)(
pPixmap
);
return
NullPixmap
;
(
*
pScreen
->
DestroyPixmap
)(
pPixmap
);
return
NullPixmap
;
}
return
pPixmap
;
}
...
...
@@ -434,14 +427,24 @@ fbShmCreatePixmap (pScreen, width, height, depth, addr)
int
depth
;
char
*
addr
;
{
PixmapPtr
result
;
#ifdef TEST
fprintf
(
stderr
,
"%s: Width [%d] Height [%d] Depth [%d] Hint[%d]
\n
"
,
__func__
,
width
,
height
,
depth
,
0
);
#endif
nxagentShmPixmapTrap
=
True
;
result
=
nxagent_fbShmCreatePixmap
(
pScreen
,
width
,
height
,
depth
,
addr
);
PixmapPtr
result
=
nxagent_fbShmCreatePixmap
(
pScreen
,
width
,
height
,
depth
,
addr
);
nxagentShmPixmapTrap
=
False
;
#ifdef WARNING
if
(
result
==
NullPixmap
)
{
fprintf
(
stderr
,
"%s: Return Null Pixmap.
\n
"
,
__func__
);
}
#endif
return
result
;
}
...
...
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