diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-07-05 15:55:42 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-07-11 13:36:41 -0700 |
commit | 39cfa5d40b1b5ea2a060bfa51c0f573bbc1bf665 (patch) | |
tree | 36286b8a5f5abf0d35cc6ec3a3ee6707979d6dc8 /recordmydesktop/src | |
parent | 8e8124c7353c7001a6ebbde500803e11bd7b6588 (diff) |
*: more small whitespace fixups
nothing functionally changed
Diffstat (limited to 'recordmydesktop/src')
-rw-r--r-- | recordmydesktop/src/rmd_cache.c | 8 | ||||
-rw-r--r-- | recordmydesktop/src/rmd_get_frame.c | 2 | ||||
-rw-r--r-- | recordmydesktop/src/rmd_rescue.c | 8 |
3 files changed, 9 insertions, 9 deletions
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); |