diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-07-01 01:39:50 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-07-11 13:36:41 -0700 |
commit | 03d4c4f006bc16594b10f05a64e1c542eba9e327 (patch) | |
tree | db98abd9d927ae9210d448060721b7c4735ba595 /recordmydesktop/src | |
parent | 7e978caa09954a81718f1b416c1118a8a3118bdf (diff) |
getzpixmap: more formatting cleanups
Diffstat (limited to 'recordmydesktop/src')
-rw-r--r-- | recordmydesktop/src/rmd_getzpixmap.c | 62 |
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(); |