diff options
Diffstat (limited to 'recordmydesktop')
-rw-r--r-- | recordmydesktop/src/rectinsert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recordmydesktop/src/rectinsert.c b/recordmydesktop/src/rectinsert.c index 10d9841..dadcc0c 100644 --- a/recordmydesktop/src/rectinsert.c +++ b/recordmydesktop/src/rectinsert.c @@ -532,9 +532,9 @@ void BlocksFromList(RectArea **root, while(temp!=NULL){ column_start=(temp->geom.x-x_offset)/Y_UNIT_WIDTH; - column_end=(temp->geom.x+temp->geom.width-x_offset)/Y_UNIT_WIDTH; + column_end=(temp->geom.x+(temp->geom.width-1)-x_offset)/Y_UNIT_WIDTH; row_start=(temp->geom.y-y_offset)/Y_UNIT_WIDTH; - row_end=(temp->geom.y+temp->geom.height-y_offset)/Y_UNIT_WIDTH; + row_end=(temp->geom.y+(temp->geom.height-1)-y_offset)/Y_UNIT_WIDTH; for(i=row_start;i<row_end+1;i++){ for(j=column_start;j<column_end+1;j++){ blockno=i*blocknum_x+j; |