mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 03:10:14 +00:00
Create MENU_DISPLAY_CTL_INIT_FIRST_DRIVER
This commit is contained in:
parent
9f2bc8d55e
commit
3e0d3cbd55
@ -1043,7 +1043,7 @@ static void *mui_init(void **userdata)
|
||||
if (!menu)
|
||||
goto error;
|
||||
|
||||
if (!menu_display_driver_init_first())
|
||||
if (!menu_display_ctl(MENU_DISPLAY_CTL_INIT_FIRST_DRIVER, NULL))
|
||||
goto error;
|
||||
|
||||
mui = (mui_handle_t*)calloc(1, sizeof(mui_handle_t));
|
||||
|
@ -1986,7 +1986,7 @@ static void *xmb_init(void **userdata)
|
||||
if (!menu)
|
||||
goto error;
|
||||
|
||||
if (!menu_display_driver_init_first())
|
||||
if (!menu_display_ctl(MENU_DISPLAY_CTL_INIT_FIRST_DRIVER, NULL))
|
||||
goto error;
|
||||
|
||||
video_driver_get_size(&width, &height);
|
||||
|
@ -1059,7 +1059,7 @@ static void *zarch_init(void **userdata)
|
||||
if (!menu)
|
||||
goto error;
|
||||
|
||||
if (!menu_display_driver_init_first())
|
||||
if (!menu_display_ctl(MENU_DISPLAY_CTL_INIT_FIRST_DRIVER, NULL))
|
||||
goto error;
|
||||
|
||||
zui = (zui_t*)calloc(1, sizeof(zui_t));
|
||||
|
@ -145,7 +145,7 @@ static bool menu_display_check_compatibility(
|
||||
return false;
|
||||
}
|
||||
|
||||
bool menu_display_driver_init_first(void)
|
||||
static bool menu_display_driver_init_first(void)
|
||||
{
|
||||
unsigned i;
|
||||
menu_display_t *disp = menu_display_get_ptr();
|
||||
@ -468,6 +468,11 @@ bool menu_display_ctl(enum menu_display_ctl_state state, void *data)
|
||||
*dpi = menu_dpi_override_value;
|
||||
}
|
||||
break;
|
||||
case MENU_DISPLAY_CTL_INIT_FIRST_DRIVER:
|
||||
return menu_display_driver_init_first();
|
||||
case MENU_DISPLAY_CTL_NONE:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -33,7 +33,8 @@ extern "C" {
|
||||
|
||||
enum menu_display_ctl_state
|
||||
{
|
||||
MENU_DISPLAY_CTL_SET_VIEWPORT = 0,
|
||||
MENU_DISPLAY_CTL_NONE = 0,
|
||||
MENU_DISPLAY_CTL_SET_VIEWPORT,
|
||||
MENU_DISPLAY_CTL_UNSET_VIEWPORT,
|
||||
MENU_DISPLAY_CTL_GET_FRAMEBUFFER_DIRTY_FLAG,
|
||||
MENU_DISPLAY_CTL_SET_FRAMEBUFFER_DIRTY_FLAG,
|
||||
@ -55,6 +56,7 @@ enum menu_display_ctl_state
|
||||
MENU_DISPLAY_CTL_FRAMEBUF_DEINIT,
|
||||
MENU_DISPLAY_CTL_DEINIT,
|
||||
MENU_DISPLAY_CTL_INIT,
|
||||
MENU_DISPLAY_CTL_INIT_FIRST_DRIVER,
|
||||
MENU_DISPLAY_CTL_FONT_DATA_INIT,
|
||||
MENU_DISPLAY_CTL_SET_FONT_DATA_INIT,
|
||||
MENU_DISPLAY_CTL_FONT_SIZE,
|
||||
@ -137,8 +139,6 @@ void menu_display_msg_queue_push(const char *msg, unsigned prio, unsigned durati
|
||||
bool flush);
|
||||
|
||||
|
||||
bool menu_display_driver_init_first(void);
|
||||
|
||||
void menu_display_draw(float x, float y,
|
||||
unsigned width, unsigned height,
|
||||
struct gfx_coords *coords,
|
||||
|
Loading…
Reference in New Issue
Block a user