From e06df282296ab79c02969c8108519248f133ca06 Mon Sep 17 00:00:00 2001 From: iovar Date: Fri, 3 Aug 2007 13:02:02 +0000 Subject: get_frame.c: fix segmentation fault with x, y !=0 when using --full-shots git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@398 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/src/get_frame.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'recordmydesktop') diff --git a/recordmydesktop/src/get_frame.c b/recordmydesktop/src/get_frame.c index 0f934b8..5bad332 100644 --- a/recordmydesktop/src/get_frame.c +++ b/recordmydesktop/src/get_frame.c @@ -296,13 +296,17 @@ void *GetFrame(ProgData *pdata){ (mouse_pos_temp.width>0)&& (mouse_pos_temp.height>0)){ - MARK_BACK_BUFFER( front_buff,\ - back_buff,\ - mouse_pos_temp.x,\ - mouse_pos_temp.y,\ - mouse_pos_temp.width,\ - mouse_pos_temp.height,\ - (pdata->brwin.rgeom.width),\ + MARK_BACK_BUFFER( front_buff, + back_buff, + (mouse_pos_temp.x- + pdata->brwin.rgeom.x+ + pdata->enc_data->x_offset), + (mouse_pos_temp.y- + pdata->brwin.rgeom.y+ + pdata->enc_data->y_offset), + mouse_pos_temp.width, + mouse_pos_temp.height, + (pdata->brwin.rgeom.width), pdata->specs.depth) } } -- cgit v1.2.3