• Octavio Alvarez's avatar
    lavd/x11grab: fix vertical repositioning · f4f40cbb
    Octavio Alvarez authored
    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.
    f4f40cbb
Name
Last commit
Last update
..
tests Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
alldevices.c Loading commit data...
alsa.c Loading commit data...
alsa.h Loading commit data...
alsa_dec.c Loading commit data...
alsa_enc.c Loading commit data...
android_camera.c Loading commit data...
avdevice.c Loading commit data...
avdevice.h Loading commit data...
avdeviceres.rc Loading commit data...
avfoundation.m Loading commit data...
bktr.c Loading commit data...
caca.c Loading commit data...
decklink_common.cpp Loading commit data...
decklink_common.h Loading commit data...
decklink_common_c.h Loading commit data...
decklink_dec.cpp Loading commit data...
decklink_dec.h Loading commit data...
decklink_dec_c.c Loading commit data...
decklink_enc.cpp Loading commit data...
decklink_enc.h Loading commit data...
decklink_enc_c.c Loading commit data...
dshow.c Loading commit data...
dshow_capture.h Loading commit data...
dshow_common.c Loading commit data...
dshow_crossbar.c Loading commit data...
dshow_enummediatypes.c Loading commit data...
dshow_enumpins.c Loading commit data...
dshow_filter.c Loading commit data...
dshow_pin.c Loading commit data...
fbdev_common.c Loading commit data...
fbdev_common.h Loading commit data...
fbdev_dec.c Loading commit data...
fbdev_enc.c Loading commit data...
file_open.c Loading commit data...
gdigrab.c Loading commit data...
iec61883.c Loading commit data...
internal.h Loading commit data...
jack.c Loading commit data...
kmsgrab.c Loading commit data...
lavfi.c Loading commit data...
libavdevice.v Loading commit data...
libcdio.c Loading commit data...
libdc1394.c Loading commit data...
openal-dec.c Loading commit data...
opengl_enc.c Loading commit data...
opengl_enc_shaders.h Loading commit data...
oss.c Loading commit data...
oss.h Loading commit data...
oss_dec.c Loading commit data...
oss_enc.c Loading commit data...
pulse_audio_common.c Loading commit data...
pulse_audio_common.h Loading commit data...
pulse_audio_dec.c Loading commit data...
pulse_audio_enc.c Loading commit data...
reverse.c Loading commit data...
sdl2.c Loading commit data...
sndio.c Loading commit data...
sndio.h Loading commit data...
sndio_dec.c Loading commit data...
sndio_enc.c Loading commit data...
timefilter.c Loading commit data...
timefilter.h Loading commit data...
utils.c Loading commit data...
v4l2-common.c Loading commit data...
v4l2-common.h Loading commit data...
v4l2.c Loading commit data...
v4l2enc.c Loading commit data...
version.h Loading commit data...
vfwcap.c Loading commit data...
xcbgrab.c Loading commit data...
xv.c Loading commit data...