From 348ea46537bc45c2d4520f1f8ac3f24271b67e0c Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 8 Jan 2015 18:32:23 +0100 Subject: win32: minor simplification The events parameter is not needed here and won't ever be. --- video/out/w32_common.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'video/out') diff --git a/video/out/w32_common.c b/video/out/w32_common.c index bcfe0dbff0..0df65a1eac 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -1211,8 +1211,7 @@ static bool vo_w32_is_cursor_in_client(struct vo_w32_state *w32) return SendMessage(w32->window, WM_NCHITTEST, 0, pos) == HTCLIENT; } -static int gui_thread_control(struct vo_w32_state *w32, int *events, - int request, void *arg) +static int gui_thread_control(struct vo_w32_state *w32, int request, void *arg) { switch (request) { case VOCTRL_FULLSCREEN: @@ -1289,7 +1288,7 @@ static void do_control(void *ptr) int request = *(int *)p[2]; void *arg = p[3]; int *ret = p[4]; - *ret = gui_thread_control(w32, events, request, arg); + *ret = gui_thread_control(w32, request, arg); *events |= w32->event_flags; w32->event_flags = 0; // Safe access, since caller (owner of vo) is blocked. -- cgit v1.2.3