summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-08-03 13:02:02 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-08-03 13:02:02 +0000
commite06df282296ab79c02969c8108519248f133ca06 (patch)
tree43ae7b549636726dbea8ec0b1477db71ffc137c3
parent6b6ad0fb41b37864522c1711ee2d8232c289ff06 (diff)
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
-rw-r--r--recordmydesktop/src/get_frame.c18
1 files changed, 11 insertions, 7 deletions
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)
}
}
© All Rights Reserved