summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-07-01 01:39:50 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-07-11 13:36:41 -0700
commit03d4c4f006bc16594b10f05a64e1c542eba9e327 (patch)
treedb98abd9d927ae9210d448060721b7c4735ba595
parent7e978caa09954a81718f1b416c1118a8a3118bdf (diff)
getzpixmap: more formatting cleanups
-rw-r--r--recordmydesktop/src/rmd_getzpixmap.c62
1 files changed, 31 insertions, 31 deletions
diff --git a/recordmydesktop/src/rmd_getzpixmap.c b/recordmydesktop/src/rmd_getzpixmap.c
index fa7c809..27a41d2 100644
--- a/recordmydesktop/src/rmd_getzpixmap.c
+++ b/recordmydesktop/src/rmd_getzpixmap.c
@@ -50,24 +50,24 @@ int rmdGetZPixmap( Display *dpy,
long nbytes;
LockDisplay(dpy);
- GetReq(GetImage,request);
- request->drawable=root;
- request->x=x;
- request->y=y;
- request->width=width;
- request->height=height;
- request->planeMask=AllPlanes;
- request->format=ZPixmap;
-
- if (!_XReply(dpy,(xReply *)&reply,0,xFalse) || !reply.length) {
+ GetReq(GetImage, request);
+ request->drawable = root;
+ request->x = x;
+ request->y = y;
+ request->width = width;
+ request->height = height;
+ request->planeMask = AllPlanes;
+ request->format = ZPixmap;
+
+ if (!_XReply(dpy, (xReply *)&reply, 0, xFalse) || !reply.length) {
UnlockDisplay(dpy);
SyncHandle();
return 1;
}
- nbytes=(long)reply.length<<2;
- _XReadPad(dpy,data,nbytes);
+ nbytes = (long)reply.length << 2;
+ _XReadPad(dpy, data, nbytes);
UnlockDisplay(dpy);
SyncHandle();
@@ -85,34 +85,34 @@ int rmdGetZPixmapSHM( Display *dpy,
int height) {
xShmGetImageReply reply;
- xShmGetImageReq *request=NULL;
+ xShmGetImageReq *request = NULL;
long nbytes;
LockDisplay(dpy);
- GetReq(ShmGetImage,request);
-
- request->reqType=shm_opcode;
- request->shmReqType=X_ShmGetImage;
- request->shmseg=shminfo->shmseg;
-
- request->drawable=root;
- request->x=x;
- request->y=y;
- request->width=width;
- request->height=height;
- request->planeMask=AllPlanes;
- request->format=ZPixmap;
- request->offset=data-shminfo->shmaddr;
-
- if ((!_XReply(dpy,(xReply *)&reply,0,xFalse))||(!reply.length)) {
+ GetReq(ShmGetImage, request);
+
+ request->reqType = shm_opcode;
+ request->shmReqType = X_ShmGetImage;
+ request->shmseg = shminfo->shmseg;
+
+ request->drawable = root;
+ request->x = x;
+ request->y = y;
+ request->width = width;
+ request->height = height;
+ request->planeMask = AllPlanes;
+ request->format = ZPixmap;
+ request->offset = data - shminfo->shmaddr;
+
+ if ((!_XReply(dpy, (xReply *)&reply, 0, xFalse)) || !reply.length) {
UnlockDisplay(dpy);
SyncHandle();
return 1;
}
- nbytes=(long)reply.length << 2;
- _XReadPad(dpy,data,nbytes);
+ nbytes = (long)reply.length << 2;
+ _XReadPad(dpy, data, nbytes);
UnlockDisplay(dpy);
SyncHandle();
© All Rights Reserved