From 03d4c4f006bc16594b10f05a64e1c542eba9e327 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 1 Jul 2020 01:39:50 -0700 Subject: getzpixmap: more formatting cleanups --- recordmydesktop/src/rmd_getzpixmap.c | 62 ++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'recordmydesktop') 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(); -- cgit v1.2.3