From 522d52b58f6a8c29efa915bb1b119f49212e89ee Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 11 Jul 2020 15:36:20 -0700 Subject: *: more formatting cleanups Nothing functionally changed --- recordmydesktop/src/rmd_frame.c | 50 ++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'recordmydesktop/src/rmd_frame.c') diff --git a/recordmydesktop/src/rmd_frame.c b/recordmydesktop/src/rmd_frame.c index ce2e204..ee5c4d8 100644 --- a/recordmydesktop/src/rmd_frame.c +++ b/recordmydesktop/src/rmd_frame.c @@ -47,29 +47,29 @@ void rmdDrawFrame( Display *dpy, GC gc; XGCValues gcv; XColor white, white_e, black, black_e; - unsigned long gcmask=GCForeground; + unsigned long gcmask = GCForeground; - XAllocNamedColor(dpy,DefaultColormap(dpy, screen),"white", &white, &white_e); - XAllocNamedColor(dpy,DefaultColormap(dpy, screen),"black", &black, &black_e); + XAllocNamedColor(dpy, DefaultColormap(dpy, screen), "white", &white, &white_e); + XAllocNamedColor(dpy, DefaultColormap(dpy, screen), "black", &black, &black_e); gcv.foreground = black.pixel; - gc = XCreateGC(dpy,win, gcmask,&gcv); + gc = XCreateGC(dpy, win, gcmask, &gcv); XFillRectangle( dpy, win, gc, OUTLINE_WIDTH, OUTLINE_WIDTH, - width+(BORDER_WIDTH-OUTLINE_WIDTH)*2, - height+(BORDER_WIDTH-OUTLINE_WIDTH)*2); + width + (BORDER_WIDTH-OUTLINE_WIDTH) * 2, + height + (BORDER_WIDTH-OUTLINE_WIDTH) * 2); gcv.foreground = white.pixel; - XChangeGC(dpy,gc,gcmask,&gcv); + XChangeGC(dpy, gc, gcmask, &gcv); XFillRectangle( dpy, win, gc, BORDER_WIDTH-OUTLINE_WIDTH, BORDER_WIDTH-OUTLINE_WIDTH, - width+OUTLINE_WIDTH*2, - height+OUTLINE_WIDTH*2); + width + OUTLINE_WIDTH * 2, + height + OUTLINE_WIDTH * 2); XFreeGC(dpy, gc); @@ -81,7 +81,7 @@ void rmdMoveFrame( Display *dpy, int y) { XMoveWindow(dpy, win, x-BORDER_WIDTH, y-BORDER_WIDTH); -// XSync(pdata->dpy,False); +// XSync(pdata->dpy, False); } Window rmdFrameInit( Display *dpy, @@ -95,23 +95,23 @@ Window rmdFrameInit( Display *dpy, XSetWindowAttributes attribs; XColor white, white_e; Window win; - unsigned long valuemask=CWBackPixmap|CWBackPixel| + unsigned long valuemask = CWBackPixmap|CWBackPixel| CWSaveUnder|CWOverrideRedirect|CWColormap; - XAllocNamedColor(dpy,DefaultColormap(dpy, screen),"white", &white, &white_e); + XAllocNamedColor(dpy, DefaultColormap(dpy, screen), "white", &white, &white_e); - attribs.background_pixmap=None; - attribs.background_pixel=white.pixel; - attribs.save_under=True; - attribs.override_redirect=True; - attribs.colormap=DefaultColormap(dpy,screen); + attribs.background_pixmap = None; + attribs.background_pixel = white.pixel; + attribs.save_under = True; + attribs.override_redirect = True; + attribs.colormap = DefaultColormap(dpy, screen); win = XCreateWindow( dpy, root, - x-BORDER_WIDTH, - y-BORDER_WIDTH, - width+BORDER_WIDTH*2, - height+BORDER_WIDTH*2, + x - BORDER_WIDTH, + y - BORDER_WIDTH, + width + BORDER_WIDTH * 2, + height + BORDER_WIDTH * 2, 0, CopyFromParent, InputOutput, @@ -120,9 +120,9 @@ Window rmdFrameInit( Display *dpy, &attribs); XRectangle rect; - rect.x=rect.y=BORDER_WIDTH; - rect.width=width; - rect.height=height; + rect.x = rect.y = BORDER_WIDTH; + rect.width = width; + rect.height = height; XShapeCombineRectangles( dpy, win, @@ -136,7 +136,7 @@ Window rmdFrameInit( Display *dpy, XMapWindow(dpy, win); - rmdDrawFrame(dpy,screen,win,width,height); + rmdDrawFrame(dpy, screen, win, width, height); return win; } -- cgit v1.2.3