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
995350d1
Unverified
Commit
995350d1
authored
Feb 05, 2018
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/shm_missing_code' into 3.6.x
Attributes GH PR #655:
https://github.com/ArcticaProject/nx-libs/pull/655
parents
ef0a3d63
9fb582f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
NXshm.c
nx-X11/programs/Xserver/hw/nxagent/NXshm.c
+14
-1
No files found.
nx-X11/programs/Xserver/hw/nxagent/NXshm.c
View file @
995350d1
...
...
@@ -349,6 +349,20 @@ ProcShmPutImage(client)
fprintf
(
stderr
,
"ProcShmPutImage: Calling (*shmFuncs[pDraw->pScreen->myNum]->PutImage)().
\n
"
);
#endif
if
((((
stuff
->
format
==
ZPixmap
)
&&
(
stuff
->
srcX
==
0
))
||
((
stuff
->
format
!=
ZPixmap
)
&&
(
stuff
->
srcX
<
screenInfo
.
bitmapScanlinePad
)
&&
((
stuff
->
format
==
XYBitmap
)
||
((
stuff
->
srcY
==
0
)
&&
(
stuff
->
srcHeight
==
stuff
->
totalHeight
)))))
&&
((
stuff
->
srcX
+
stuff
->
srcWidth
)
==
stuff
->
totalWidth
))
(
*
pGC
->
ops
->
PutImage
)
(
pDraw
,
pGC
,
stuff
->
depth
,
stuff
->
dstX
,
stuff
->
dstY
,
stuff
->
totalWidth
,
stuff
->
srcHeight
,
stuff
->
srcX
,
stuff
->
format
,
shmdesc
->
addr
+
stuff
->
offset
+
(
stuff
->
srcY
*
length
));
else
(
*
shmFuncs
[
pDraw
->
pScreen
->
myNum
]
->
PutImage
)(
pDraw
,
pGC
,
stuff
->
depth
,
stuff
->
format
,
stuff
->
totalWidth
,
stuff
->
totalHeight
,
...
...
@@ -364,7 +378,6 @@ ProcShmPutImage(client)
memset
(
&
ev
,
0
,
sizeof
(
xShmCompletionEvent
));
ev
.
type
=
ShmCompletionCode
;
ev
.
drawable
=
stuff
->
drawable
;
ev
.
sequenceNumber
=
client
->
sequence
;
ev
.
minorEvent
=
X_ShmPutImage
;
ev
.
majorEvent
=
ShmReqCode
;
ev
.
shmseg
=
stuff
->
shmseg
;
...
...
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