summaryrefslogtreecommitdiff
path: root/recordmydesktop/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-07-06 16:53:51 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-07-11 13:36:41 -0700
commit733913354256f67a1f6caef1e463ce62aaea473b (patch)
tree8fdc6b8c07d6a2e2430788f394f1d8db2cb2023e /recordmydesktop/src
parent14892ad2f30be673f35fea399dadc89be863d851 (diff)
getzpixmap: remove pointless _XReadPad()
No idea why rmdGetZPixmapSHM() is doing this, the whole point of shmem is to not have to read the data over the wire. You request the server to do the copy into the shared memory and that's all there is to it. This program is so confused
Diffstat (limited to 'recordmydesktop/src')
-rw-r--r--recordmydesktop/src/rmd_getzpixmap.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/recordmydesktop/src/rmd_getzpixmap.c b/recordmydesktop/src/rmd_getzpixmap.c
index 27a41d2..43465c8 100644
--- a/recordmydesktop/src/rmd_getzpixmap.c
+++ b/recordmydesktop/src/rmd_getzpixmap.c
@@ -86,7 +86,6 @@ int rmdGetZPixmapSHM( Display *dpy,
xShmGetImageReply reply;
xShmGetImageReq *request = NULL;
- long nbytes;
LockDisplay(dpy);
GetReq(ShmGetImage, request);
@@ -111,8 +110,6 @@ int rmdGetZPixmapSHM( Display *dpy,
return 1;
}
- nbytes = (long)reply.length << 2;
- _XReadPad(dpy, data, nbytes);
UnlockDisplay(dpy);
SyncHandle();
© All Rights Reserved