[vlc-devel] [PATCH 06/11] kva: handle the flag in VOUT_DISPLAY_HIDE_MOUSE
KO Myung-Hun
komh78 at gmail.com
Wed Aug 9 12:54:52 CEST 2017
Steve Lhomme wrote:
> ---
> modules/video_output/kva.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/modules/video_output/kva.c b/modules/video_output/kva.c
> index dbd2a737ed..f181e70f35 100644
> --- a/modules/video_output/kva.c
> +++ b/modules/video_output/kva.c
> @@ -419,13 +419,14 @@ static int Control( vout_display_t *vd, int query, va_list args )
> case VOUT_DISPLAY_HIDE_MOUSE:
> {
> POINTL ptl;
> + bool hide = va_arg(args, int);
>
> WinQueryPointerPos( HWND_DESKTOP, &ptl );
> - if( !sys->is_mouse_hidden &&
> + if( sys->is_mouse_hidden != hide &&
> WinWindowFromPoint( HWND_DESKTOP, &ptl, TRUE ) == sys->client )
> {
> - WinShowPointer( HWND_DESKTOP, FALSE );
> - sys->is_mouse_hidden = true;
> + WinShowPointer( HWND_DESKTOP, hide ? TRUE : FALSE );
Do you mean to show a mouse cursor when `hide' is true ?
> + sys->is_mouse_hidden = hide;
> }
>
> return VLC_SUCCESS;
--
KO Myung-Hun
Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM
Korean OS/2 User Community : http://www.os2.kr/
More information about the vlc-devel
mailing list