mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Fix video_driver_is_focused - keyboard should work again with
threaded video
This commit is contained in:
parent
52c1d398a2
commit
0e34d362d3
@ -2908,10 +2908,10 @@ bool video_context_driver_set_flags(gfx_ctx_flags_t *flags)
|
|||||||
|
|
||||||
bool video_driver_is_focused(void)
|
bool video_driver_is_focused(void)
|
||||||
{
|
{
|
||||||
if (current_video->focus)
|
if (video_context_data && current_video_context->has_focus)
|
||||||
return current_video->focus(video_driver_data);
|
|
||||||
else if (video_context_data && current_video_context->has_focus)
|
|
||||||
return current_video_context->has_focus(video_context_data);
|
return current_video_context->has_focus(video_context_data);
|
||||||
|
else if (current_video->focus)
|
||||||
|
return current_video->focus(video_driver_data);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user