summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/rmd_update_image.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-06-23 17:07:35 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-07-11 13:36:41 -0700
commit5322492387de537aad9663da403e34546b5571d4 (patch)
tree405c3939206525fd1c6e06947f005c2a6486a630 /recordmydesktop/src/rmd_update_image.c
parentbd92626fb30437b06084c948cb93ecc30c4fa63d (diff)
*: try restore some sanity to YUV macros
The public macros didn't need to be macros, so they've been turned into functions. All the big ugly YUV macro stuff that can be justified as macros has been moved to rmd_yuv_utils.c where they're privately used. They've also had a first pass at formatting them sanely...
Diffstat (limited to 'recordmydesktop/src/rmd_update_image.c')
-rw-r--r--recordmydesktop/src/rmd_update_image.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/recordmydesktop/src/rmd_update_image.c b/recordmydesktop/src/rmd_update_image.c
index 657868d..3b5c39f 100644
--- a/recordmydesktop/src/rmd_update_image.c
+++ b/recordmydesktop/src/rmd_update_image.c
@@ -73,10 +73,12 @@ void rmdUpdateImage( Display * dpy,
temp->rect.height);
}
- UPDATE_YUV_BUFFER(
- yuv,dtap,NULL,
- temp->rect.x-brwin->rrect.x+enc->x_offset,
- temp->rect.y-brwin->rrect.y+enc->y_offset,
+ rmdUpdateYuvBuffer(
+ yuv,
+ dtap,
+ NULL,
+ temp->rect.x - brwin->rrect.x + enc->x_offset,
+ temp->rect.y - brwin->rrect.y + enc->y_offset,
temp->rect.width,
temp->rect.height,
no_quick_subsample,
© All Rights Reserved