From 0e34d362d3aaf228f822beac17eea52fffd9dd41 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 14 May 2017 18:52:36 +0200 Subject: [PATCH] Fix video_driver_is_focused - keyboard should work again with threaded video --- gfx/video_driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 65eeba0c87..ea1c68d9ba 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -2908,10 +2908,10 @@ bool video_context_driver_set_flags(gfx_ctx_flags_t *flags) bool video_driver_is_focused(void) { - if (current_video->focus) - return current_video->focus(video_driver_data); - else if (video_context_data && current_video_context->has_focus) + if (video_context_data && current_video_context->has_focus) return current_video_context->has_focus(video_context_data); + else if (current_video->focus) + return current_video->focus(video_driver_data); return true; }