Create gfx_ctx_ctl

This commit is contained in:
twinaphex 2016-02-13 08:21:35 +01:00
parent e3b2abed9e
commit 753fd86c2e
2 changed files with 19 additions and 0 deletions

View File

@ -442,3 +442,15 @@ const gfx_ctx_driver_t *gfx_ctx_init_first(void *data,
return gfx_ctx_find_driver(data, ident, api,
major, minor, hw_render_ctx);
}
bool gfx_ctx_ctl(enum gfx_ctx_ctl_state state, void *data)
{
switch (state)
{
case GFX_CTL_NONE:
default:
break;
}
return true;
}

View File

@ -51,6 +51,11 @@ enum display_metric_types
DISPLAY_METRIC_DPI
};
enum gfx_ctx_ctl_state
{
GFX_CTL_NONE = 0
};
typedef void (*gfx_ctx_proc_t)(void);
typedef struct gfx_ctx_driver
@ -254,6 +259,8 @@ void gfx_ctx_set(const gfx_ctx_driver_t *ctx_driver);
void gfx_ctx_destroy(const gfx_ctx_driver_t *ctx_driver);
bool gfx_ctx_ctl(enum gfx_ctx_ctl_state state, void *data);
#ifdef __cplusplus
}
#endif