diff options
author | Octavio Alvarez <octalffdev@alvarezp.org> | 2019-03-27 22:52:32 -0600 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-04-06 15:20:36 +0200 |
commit | f4f40cbb578a09319f9ddafc80388a5556ec7713 (patch) | |
tree | 577bc0d0a36596f02c0c8f0041ea4d4445e63755 /libavcodec/mips/me_cmp_msa.c | |
parent | 772c73e61f5df3b37b4b227bdf8e93035f8f7daa (diff) | |
download | ffmpeg-f4f40cbb578a09319f9ddafc80388a5556ec7713.tar.gz |
lavd/x11grab: fix vertical repositioning
There is a calculation error in xcbgrab_reposition() that breaks
vertical repositioning on follow_mouse. It made the bottom
reposition occur when moving the mouse lower than N pixels after
the capture bottom edge, instead of before.
This commit fixes the calculation to match the documentation.
follow_mouse: centered or number of pixels. The documentation says:
When it is specified with "centered", the grabbing region follows
the mouse pointer and keeps the pointer at the center of region;
otherwise, the region follows only when the mouse pointer reaches
within PIXELS (greater than zero) to the edge of region.
Diffstat (limited to 'libavcodec/mips/me_cmp_msa.c')
0 files changed, 0 insertions, 0 deletions