summaryrefslogtreecommitdiff
path: root/src/rmd_get_frames.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-08-19 18:40:28 -0700
committerVito Caputo <vcaputo@pengaru.com>2021-08-19 18:44:41 -0700
commit1cdf1e64e0a2362b23e8c170841f953de16a2d30 (patch)
tree19a12e213f4d397f325d67d71d0a9f642d0bf399 /src/rmd_get_frames.c
parentae21d9d55227c4a831eeec80b4a494cc36e0b822 (diff)
get_frames: nix even coord constraint in rmdMoveCaptureArea
We no longer bother with such things in this fork. It's worth noting the original codebase bothered with these things in places where it was altogether unnecessary. This means --follow-mouse will precisely follow the mouse, not only when the mouse has moved out of the bounding area enough to reach the next even coordinate.
Diffstat (limited to 'src/rmd_get_frames.c')
-rw-r--r--src/rmd_get_frames.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rmd_get_frames.c b/src/rmd_get_frames.c
index 3a3fc2e..2b442b5 100644
--- a/src/rmd_get_frames.c
+++ b/src/rmd_get_frames.c
@@ -204,10 +204,8 @@ static void rmdMoveCaptureArea( XRectangle *rect,
int t_x = 0, t_y = 0;
t_x = cursor_x - rect->width / 2;
- t_x = (t_x >> 1) << 1;
rect->x = (t_x < 0) ? 0 : ((t_x + rect->width > width) ? width - rect->width : t_x);
t_y = cursor_y - rect->height / 2;
- t_y = (t_y >> 1) << 1;
rect->y = (t_y < 0 ) ? 0 : ((t_y + rect->height > height) ? height - rect->height : t_y);
}
© All Rights Reserved