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
3bc01d1b
Commit
3bc01d1b
authored
May 31, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jan 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXrender.c: call upstream versions of (S)ProcRenderDispatch
parent
e5a93849
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
23 deletions
+29
-23
NXrender.c
nx-X11/programs/Xserver/hw/nxagent/NXrender.c
+15
-20
render.c
nx-X11/programs/Xserver/render/render.c
+14
-3
No files found.
nx-X11/programs/Xserver/hw/nxagent/NXrender.c
View file @
3bc01d1b
...
...
@@ -1753,58 +1753,53 @@ static int ProcRenderCreateConicalGradient (ClientPtr client)
static
int
ProcRenderDispatch
(
ClientPtr
client
)
{
int
result
;
#ifdef TEST
REQUEST
(
xReq
);
if
(
stuff
->
data
<
RenderNumberRequests
)
{
#ifdef TEST
fprintf
(
stderr
,
"ProcRenderDispatch: Request [%s] OPCODE#%d.
\n
"
,
fprintf
(
stderr
,
"%s: Request [%s] OPCODE#%d.
\n
"
,
__func__
,
nxagentRenderRequestLiteral
[
stuff
->
data
],
stuff
->
data
);
}
#endif
/*
* Set the nxagentGCTrap flag while
* dispatching a render operation to
* avoid reentrancy in GCOps.c.
* Set the nxagentGCTrap flag while dispatching a render
* operation to avoid reentrancy in GCOps.c.
*/
nxagentGCTrap
=
1
;
result
=
(
*
ProcRenderVector
[
stuff
->
data
])
(
client
);
int
result
=
xorg_ProcRenderDispatch
(
client
);
nxagentGCTrap
=
0
;
return
result
;
}
else
return
BadRequest
;
}
static
int
SProcRenderDispatch
(
ClientPtr
client
)
{
int
result
;
#ifdef TEST
REQUEST
(
xReq
);
if
(
stuff
->
data
<
RenderNumberRequests
)
{
fprintf
(
stderr
,
"%s: Request [%s] OPCODE#%d.
\n
"
,
__func__
,
nxagentRenderRequestLiteral
[
stuff
->
data
],
stuff
->
data
);
}
#endif
/*
* Set the nxagentGCTrap flag while
* dispatching a render operation to
* avoid reentrancy in GCOps.c.
* Set the nxagentGCTrap flag while dispatching a render
* operation to avoid reentrancy in GCOps.c.
*/
nxagentGCTrap
=
1
;
result
=
(
*
SProcRenderVector
[
stuff
->
data
])
(
client
);
int
result
=
xorg_SProcRenderDispatch
(
client
);
nxagentGCTrap
=
0
;
return
result
;
}
else
return
BadRequest
;
}
nx-X11/programs/Xserver/render/render.c
View file @
3bc01d1b
...
...
@@ -126,6 +126,11 @@ static int SProcRenderCreateConicalGradient (ClientPtr pClient);
static
int
SProcRenderDispatch
(
ClientPtr
pClient
);
#ifdef NXAGENT_SERVER
static
int
xorg_ProcRenderDispatch
(
ClientPtr
pClient
);
static
int
xorg_SProcRenderDispatch
(
ClientPtr
pClient
);
#endif
int
(
*
ProcRenderVector
[
RenderNumberRequests
])(
ClientPtr
)
=
{
ProcRenderQueryVersion
,
ProcRenderQueryPictFormats
,
...
...
@@ -2022,10 +2027,15 @@ static int ProcRenderCreateConicalGradient (ClientPtr client)
return
BadAlloc
;
return
Success
;
}
#endif
/* NXAGENT_SERVER */
static
int
#ifdef NXAGENT_SERVER
xorg_ProcRenderDispatch
(
ClientPtr
client
)
#else
ProcRenderDispatch
(
ClientPtr
client
)
#endif
{
REQUEST
(
xReq
);
...
...
@@ -2034,7 +2044,6 @@ ProcRenderDispatch (ClientPtr client)
else
return
BadRequest
;
}
#endif
/* NXAGENT_SERVER */
static
int
SProcRenderQueryVersion
(
ClientPtr
client
)
...
...
@@ -2606,9 +2615,12 @@ SProcRenderCreateConicalGradient (ClientPtr client)
return
(
*
ProcRenderVector
[
stuff
->
renderReqType
])
(
client
);
}
#if
n
def NXAGENT_SERVER
#ifdef NXAGENT_SERVER
static
int
xorg_SProcRenderDispatch
(
ClientPtr
client
)
#else
SProcRenderDispatch
(
ClientPtr
client
)
#endif
{
REQUEST
(
xReq
);
...
...
@@ -2617,7 +2629,6 @@ SProcRenderDispatch (ClientPtr client)
else
return
BadRequest
;
}
#endif
/* NXAGENT_SERVER */
#ifdef PANORAMIX
#include "panoramiX.h"
...
...
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