diff options
author | biocrasher <biocrasher@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-07-14 10:05:22 +0000 |
---|---|---|
committer | biocrasher <biocrasher@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-07-14 10:05:22 +0000 |
commit | 1583f3b9199ec5dd12c29375aecb9cede3ece770 (patch) | |
tree | 20573f1e9bde41a8c6e116e0df1184d26edd2fab /recordmydesktop/src/update_image.c | |
parent | 3813935bbd79a8d0102aca24453355f45b1e3878 (diff) |
theora size adjust and erroneous height cropping bugs fixed
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@7 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src/update_image.c')
-rw-r--r-- | recordmydesktop/src/update_image.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/recordmydesktop/src/update_image.c b/recordmydesktop/src/update_image.c index 04cb16f..bf319e2 100644 --- a/recordmydesktop/src/update_image.c +++ b/recordmydesktop/src/update_image.c @@ -33,6 +33,7 @@ void UpdateImage(Display * dpy, DisplaySpecs *specs, RectArea **root, BRWindow *brwin, + EncData *enc, char *datatemp, int noshmem){ RectArea *temp; @@ -53,14 +54,14 @@ void UpdateImage(Display * dpy, pthread_mutex_lock(yuv_mutex); UPDATE_YUV_BUFFER_IM(yuv,dtap, - (temp->geom.x-brwin->rgeom.x),(temp->geom.y-brwin->rgeom.y), + (temp->geom.x-brwin->rgeom.x+enc->x_offset),(temp->geom.y-brwin->rgeom.y+enc->y_offset), (temp->geom.width),(temp->geom.height)); pthread_mutex_unlock(yuv_mutex); } else{ UPDATE_YUV_BUFFER_SH(yuv,dtap, - (temp->geom.x-brwin->rgeom.x),(temp->geom.y-brwin->rgeom.y), + (temp->geom.x-brwin->rgeom.x+enc->x_offset),(temp->geom.y-brwin->rgeom.y+enc->y_offset), (temp->geom.width),(temp->geom.height)); |