[vlc-devel] [PATCH 04/11] caca: handle the flag in VOUT_DISPLAY_HIDE_MOUSE
Steve Lhomme
robux4 at videolabs.io
Tue Aug 8 15:22:24 CEST 2017
---
modules/video_output/caca.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/caca.c b/modules/video_output/caca.c
index 33a0409820..fc7756f5d9 100644
--- a/modules/video_output/caca.c
+++ b/modules/video_output/caca.c
@@ -316,9 +316,11 @@ static int Control(vout_display_t *vd, int query, va_list args)
(void) args;
switch (query) {
- case VOUT_DISPLAY_HIDE_MOUSE:
- caca_set_mouse(sys->dp, 0);
+ case VOUT_DISPLAY_HIDE_MOUSE: {
+ int hide = va_arg(args, int);
+ caca_set_mouse(sys->dp, !hide);
return VLC_SUCCESS;
+ }
case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE:
case VOUT_DISPLAY_CHANGE_ZOOM:
--
2.12.1
More information about the vlc-devel
mailing list