From 2a8a3e6ed5f019bdb296dd2fdfa3a2d486b0bc15 Mon Sep 17 00:00:00 2001 From: Yu-Chen Lin Date: Fri, 31 May 2019 20:57:06 +0800 Subject: [PATCH] Correct return value type in handle_event handle_event return the type enum event_result not bool Signed-off-by: Yu-Chen Lin --- app/src/scrcpy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/scrcpy.c b/app/src/scrcpy.c index 08dbacc3..6cc0a3ec 100644 --- a/app/src/scrcpy.c +++ b/app/src/scrcpy.c @@ -132,7 +132,7 @@ handle_event(SDL_Event *event, bool control) { screen_show_window(&screen); } if (!screen_update_frame(&screen, &video_buffer)) { - return false; + return EVENT_RESULT_CONTINUE; } break; case SDL_WINDOWEVENT: