Add GFX_CTL_SET_FLAGS

This commit is contained in:
twinaphex 2016-05-05 17:37:24 +02:00
parent 60233d1abb
commit 10b0fca258
2 changed files with 11 additions and 0 deletions

View File

@ -487,6 +487,16 @@ bool gfx_ctx_ctl(enum gfx_ctx_ctl_state state, void *data)
flags->flags = current_video_context->get_flags(video_context_data);
}
break;
case GFX_CTL_SET_FLAGS:
{
gfx_ctx_flags_t *flags = (gfx_ctx_flags_t*)data;
if (!flags)
return false;
if (!current_video_context || !current_video_context->set_flags)
return false;
current_video_context->set_flags(video_context_data, flags->flags);
}
break;
case GFX_CTL_NONE:
default:
break;

View File

@ -84,6 +84,7 @@ enum gfx_ctx_ctl_state
GFX_CTL_PROC_ADDRESS_GET,
GFX_CTL_TRANSLATE_ASPECT,
GFX_CTL_GET_FLAGS,
GFX_CTL_SET_FLAGS,
GFX_CTL_GET_METRICS,
GFX_CTL_INPUT_DRIVER,
GFX_CTL_SUPPRESS_SCREENSAVER,