From 39cfa5d40b1b5ea2a060bfa51c0f573bbc1bf665 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 5 Jul 2020 15:55:42 -0700 Subject: *: more small whitespace fixups nothing functionally changed --- recordmydesktop/src/rmd_cache.c | 8 ++++---- recordmydesktop/src/rmd_get_frame.c | 2 +- recordmydesktop/src/rmd_rescue.c | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'recordmydesktop') diff --git a/recordmydesktop/src/rmd_cache.c b/recordmydesktop/src/rmd_cache.c index bb3c765..2c4e9a2 100644 --- a/recordmydesktop/src/rmd_cache.c +++ b/recordmydesktop/src/rmd_cache.c @@ -137,10 +137,10 @@ void rmdInitCacheData(ProgData *pdata, EncData *enc_data_t, CacheData *cache_dat //we set the buffer only since there's //no need to initialize the encoder from now. - width = ((pdata->brwin.rrect.width + 15) >>4)<<4; - height = ((pdata->brwin.rrect.height + 15) >>4)<<4; - offset_x = ((width-pdata->brwin.rrect.width)/2)&~1; - offset_y = ((height-pdata->brwin.rrect.height)/2)&~1; + width = ((pdata->brwin.rrect.width + 15) >> 4) << 4; + height = ((pdata->brwin.rrect.height + 15) >> 4) << 4; + offset_x = ((width - pdata->brwin.rrect.width) / 2) & ~1; + offset_y = ((height - pdata->brwin.rrect.height) / 2) & ~1; (pdata)->enc_data = enc_data_t; diff --git a/recordmydesktop/src/rmd_get_frame.c b/recordmydesktop/src/rmd_get_frame.c index 6625847..055536d 100644 --- a/recordmydesktop/src/rmd_get_frame.c +++ b/recordmydesktop/src/rmd_get_frame.c @@ -282,7 +282,7 @@ void *rmdGetFrame(ProgData *pdata) { img_sel = d_buff = pdata->args.full_shots; - if ((init_img1 = rmdFirstFrame(pdata,&image,&shminfo) != 0)) { + if ((init_img1 = rmdFirstFrame(pdata, &image, &shminfo) != 0)) { if (pdata->args.encOnTheFly) { if (remove(pdata->args.filename)) { perror("Error while removing file:\n"); diff --git a/recordmydesktop/src/rmd_rescue.c b/recordmydesktop/src/rmd_rescue.c index ec3130e..06d58fa 100644 --- a/recordmydesktop/src/rmd_rescue.c +++ b/recordmydesktop/src/rmd_rescue.c @@ -75,10 +75,10 @@ int rmdRescue(const char *path) { if (rmdReadSpecsFile(&pdata)) return 1; - width=((pdata.brwin.rrect.width + 15) >>4)<<4; - height=((pdata.brwin.rrect.height + 15) >>4)<<4; - offset_x=((width-pdata.brwin.rrect.width)/2)&~1; - offset_y=((height-pdata.brwin.rrect.height)/2)&~1; + width = ((pdata.brwin.rrect.width + 15) >> 4) << 4; + height = ((pdata.brwin.rrect.height + 15) >> 4) << 4; + offset_x = ((width - pdata.brwin.rrect.width) / 2) & ~1; + offset_y = ((height - pdata.brwin.rrect.height) / 2) & ~1; enc_data.yuv.y=(unsigned char *)malloc(height*width); enc_data.yuv.u=(unsigned char *)malloc(height*width/4); -- cgit v1.2.1