(display server) Cleanup

This commit is contained in:
twinaphex 2020-02-16 17:34:26 +01:00
parent 2f525187a1
commit bb2251a7b2
3 changed files with 3 additions and 5 deletions

View File

@ -47,10 +47,8 @@ const char *video_display_server_get_ident(void)
return current_display_server->ident;
}
void* video_display_server_init(void)
void* video_display_server_init(enum rarch_display_type type)
{
enum rarch_display_type type = video_driver_display_type_get();
video_display_server_destroy();
switch (type)

View File

@ -59,7 +59,7 @@ typedef struct video_display_server
const char *ident;
} video_display_server_t;
void* video_display_server_init(void);
void* video_display_server_init(enum rarch_display_type type);
void video_display_server_destroy(void);

View File

@ -20782,7 +20782,7 @@ static bool video_driver_init_internal(bool *video_is_threaded)
video_context_driver_reset();
video_display_server_init();
video_display_server_init(video_driver_display_type);
if ((enum rotation)settings->uints.screen_orientation != ORIENTATION_NORMAL)
video_display_server_set_screen_orientation((enum rotation)settings->uints.screen_orientation);