mirror of
https://github.com/libretro/RetroArch
synced 2025-02-13 03:40:33 +00:00
(display server) Cleanup
This commit is contained in:
parent
2f525187a1
commit
bb2251a7b2
@ -47,10 +47,8 @@ const char *video_display_server_get_ident(void)
|
|||||||
return current_display_server->ident;
|
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();
|
video_display_server_destroy();
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
|
@ -59,7 +59,7 @@ typedef struct video_display_server
|
|||||||
const char *ident;
|
const char *ident;
|
||||||
} video_display_server_t;
|
} 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);
|
void video_display_server_destroy(void);
|
||||||
|
|
||||||
|
@ -20782,7 +20782,7 @@ static bool video_driver_init_internal(bool *video_is_threaded)
|
|||||||
|
|
||||||
video_context_driver_reset();
|
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)
|
if ((enum rotation)settings->uints.screen_orientation != ORIENTATION_NORMAL)
|
||||||
video_display_server_set_screen_orientation((enum rotation)settings->uints.screen_orientation);
|
video_display_server_set_screen_orientation((enum rotation)settings->uints.screen_orientation);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user