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/get_frame.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/get_frame.c')
-rw-r--r-- | recordmydesktop/src/get_frame.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/recordmydesktop/src/get_frame.c b/recordmydesktop/src/get_frame.c index 67c6eb2..44f2ec4 100644 --- a/recordmydesktop/src/get_frame.c +++ b/recordmydesktop/src/get_frame.c @@ -78,6 +78,7 @@ void *GetFrame(void *pdata){ &((ProgData *)pdata)->specs, &((ProgData *)pdata)->rect_root[tlist_sel], &((ProgData *)pdata)->brwin, + ((ProgData *)pdata)->enc_data, ((((ProgData *)pdata)->args.noshared)?(((ProgData *)pdata)->datatemp):((ProgData *)pdata)->image->data), ((ProgData *)pdata)->args.noshared); else{ @@ -106,8 +107,8 @@ void *GetFrame(void *pdata){ if((mouse_pos_temp.x>=0)&&(mouse_pos_temp.y>=0)&&(mouse_pos_temp.width>0)&&(mouse_pos_temp.height>0)){ DUMMY_POINTER_TO_YUV((&((ProgData *)pdata)->enc_data->yuv), ((ProgData *)pdata)->dummy_pointer, - (mouse_pos_temp.x-((ProgData *)pdata)->brwin.rgeom.x), - (mouse_pos_temp.y-((ProgData *)pdata)->brwin.rgeom.y), + (mouse_pos_temp.x-((ProgData *)pdata)->brwin.rgeom.x+((ProgData *)pdata)->enc_data->x_offset), + (mouse_pos_temp.y-((ProgData *)pdata)->brwin.rgeom.y+((ProgData *)pdata)->enc_data->y_offset), mouse_pos_temp.width, mouse_pos_temp.height, ((ProgData *)pdata)->npxl); |