video_display_server_get_flags - conditional was wrong

This commit is contained in:
twinaphex 2019-05-06 13:17:34 +02:00
parent 8092f601a6
commit 68e91e3121

View File

@ -148,7 +148,7 @@ enum rotation video_display_server_get_screen_orientation(void)
bool video_display_server_get_flags(gfx_ctx_flags_t *flags)
{
if (!current_display_server && current_display_server->get_flags)
if (!current_display_server || !current_display_server->get_flags)
return false;
if (!flags)
return false;