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
6fd0ffc9
Commit
6fd0ffc9
authored
May 30, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Nov 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXshm.c: call upstream miShmPutImage
instead of having an identical copy in nxagent_miShmPutImage
parent
a9bdfd21
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
38 deletions
+6
-38
shm.c
nx-X11/programs/Xserver/Xext/shm.c
+5
-1
NXshm.c
nx-X11/programs/Xserver/hw/nxagent/NXshm.c
+1
-37
No files found.
nx-X11/programs/Xserver/Xext/shm.c
View file @
6fd0ffc9
...
@@ -490,9 +490,12 @@ ProcShmDetach(client)
...
@@ -490,9 +490,12 @@ ProcShmDetach(client)
return
(
client
->
noClientException
);
return
(
client
->
noClientException
);
}
}
#ifndef NXAGENT_SERVER
static
void
static
void
#ifdef NXAGENT_SERVER
xorg_miShmPutImage
(
dst
,
pGC
,
depth
,
format
,
w
,
h
,
sx
,
sy
,
sw
,
sh
,
dx
,
dy
,
data
)
#else
miShmPutImage
(
dst
,
pGC
,
depth
,
format
,
w
,
h
,
sx
,
sy
,
sw
,
sh
,
dx
,
dy
,
data
)
miShmPutImage
(
dst
,
pGC
,
depth
,
format
,
w
,
h
,
sx
,
sy
,
sw
,
sh
,
dx
,
dy
,
data
)
#endif
DrawablePtr
dst
;
DrawablePtr
dst
;
GCPtr
pGC
;
GCPtr
pGC
;
int
depth
,
w
,
h
,
sx
,
sy
,
sw
,
sh
,
dx
,
dy
;
int
depth
,
w
,
h
,
sx
,
sy
,
sw
,
sh
,
dx
,
dy
;
...
@@ -525,6 +528,7 @@ miShmPutImage(dst, pGC, depth, format, w, h, sx, sy, sw, sh, dx, dy, data)
...
@@ -525,6 +528,7 @@ miShmPutImage(dst, pGC, depth, format, w, h, sx, sy, sw, sh, dx, dy, data)
(
*
pmap
->
drawable
.
pScreen
->
DestroyPixmap
)(
pmap
);
(
*
pmap
->
drawable
.
pScreen
->
DestroyPixmap
)(
pmap
);
}
}
#ifndef NXAGENT_SERVER
static
void
static
void
fbShmPutImage
(
dst
,
pGC
,
depth
,
format
,
w
,
h
,
sx
,
sy
,
sw
,
sh
,
dx
,
dy
,
data
)
fbShmPutImage
(
dst
,
pGC
,
depth
,
format
,
w
,
h
,
sx
,
sy
,
sw
,
sh
,
dx
,
dy
,
data
)
DrawablePtr
dst
;
DrawablePtr
dst
;
...
...
nx-X11/programs/Xserver/hw/nxagent/NXshm.c
View file @
6fd0ffc9
...
@@ -164,42 +164,6 @@ ShmExtensionInit(void)
...
@@ -164,42 +164,6 @@ ShmExtensionInit(void)
}
}
static
void
static
void
nxagent_miShmPutImage
(
dst
,
pGC
,
depth
,
format
,
w
,
h
,
sx
,
sy
,
sw
,
sh
,
dx
,
dy
,
data
)
DrawablePtr
dst
;
GCPtr
pGC
;
int
depth
,
w
,
h
,
sx
,
sy
,
sw
,
sh
,
dx
,
dy
;
unsigned
int
format
;
char
*
data
;
{
PixmapPtr
pmap
;
GCPtr
putGC
;
putGC
=
GetScratchGC
(
depth
,
dst
->
pScreen
);
if
(
!
putGC
)
{
return
;
}
pmap
=
(
*
dst
->
pScreen
->
CreatePixmap
)(
dst
->
pScreen
,
sw
,
sh
,
depth
,
CREATE_PIXMAP_USAGE_SCRATCH
);
if
(
!
pmap
)
{
FreeScratchGC
(
putGC
);
return
;
}
ValidateGC
((
DrawablePtr
)
pmap
,
putGC
);
(
*
putGC
->
ops
->
PutImage
)((
DrawablePtr
)
pmap
,
putGC
,
depth
,
-
sx
,
-
sy
,
w
,
h
,
0
,
(
format
==
XYPixmap
)
?
XYPixmap
:
ZPixmap
,
data
);
FreeScratchGC
(
putGC
);
if
(
format
==
XYBitmap
)
(
void
)(
*
pGC
->
ops
->
CopyPlane
)((
DrawablePtr
)
pmap
,
dst
,
pGC
,
0
,
0
,
sw
,
sh
,
dx
,
dy
,
1L
);
else
(
void
)(
*
pGC
->
ops
->
CopyArea
)((
DrawablePtr
)
pmap
,
dst
,
pGC
,
0
,
0
,
sw
,
sh
,
dx
,
dy
);
(
*
pmap
->
drawable
.
pScreen
->
DestroyPixmap
)(
pmap
);
}
static
void
miShmPutImage
(
dst
,
pGC
,
depth
,
format
,
w
,
h
,
sx
,
sy
,
sw
,
sh
,
dx
,
dy
,
data
)
miShmPutImage
(
dst
,
pGC
,
depth
,
format
,
w
,
h
,
sx
,
sy
,
sw
,
sh
,
dx
,
dy
,
data
)
DrawablePtr
dst
;
DrawablePtr
dst
;
GCPtr
pGC
;
GCPtr
pGC
;
...
@@ -211,7 +175,7 @@ miShmPutImage(dst, pGC, depth, format, w, h, sx, sy, sw, sh, dx, dy, data)
...
@@ -211,7 +175,7 @@ miShmPutImage(dst, pGC, depth, format, w, h, sx, sy, sw, sh, dx, dy, data)
nxagentShmTrap
=
0
;
nxagentShmTrap
=
0
;
nxagent
_miShmPutImage
(
dst
,
pGC
,
depth
,
format
,
w
,
h
,
sx
,
sy
,
sw
,
sh
,
dx
,
dy
,
data
);
xorg
_miShmPutImage
(
dst
,
pGC
,
depth
,
format
,
w
,
h
,
sx
,
sy
,
sw
,
sh
,
dx
,
dy
,
data
);
nxagentShmTrap
=
1
;
nxagentShmTrap
=
1
;
...
...
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