Add GFX_CTL_SET_FLAGS
This commit is contained in:
parent
60233d1abb
commit
10b0fca258
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue