mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 21:39:54 +00:00
Better way to check if there is a resolution list - should
hide this entry on Android
This commit is contained in:
parent
5e9bfd52db
commit
7530436918
@ -108,9 +108,15 @@ bool video_display_server_set_resolution(unsigned width, unsigned height,
|
||||
return false;
|
||||
}
|
||||
|
||||
bool video_display_server_has_resolution_list(void)
|
||||
{
|
||||
return (current_display_server
|
||||
&& current_display_server->get_resolution_list);
|
||||
}
|
||||
|
||||
void *video_display_server_get_resolution_list(unsigned *size)
|
||||
{
|
||||
if (current_display_server && current_display_server->get_resolution_list)
|
||||
if (video_display_server_has_resolution_list())
|
||||
return current_display_server->get_resolution_list(current_display_server_data, size);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -85,6 +85,8 @@ void video_display_server_set_screen_orientation(enum rotation rotation);
|
||||
|
||||
bool video_display_server_can_set_screen_orientation(void);
|
||||
|
||||
bool video_display_server_has_resolution_list(void);
|
||||
|
||||
enum rotation video_display_server_get_screen_orientation(void);
|
||||
|
||||
extern const video_display_server_t dispserv_win32;
|
||||
|
@ -5664,7 +5664,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
|
||||
#if defined(GEKKO) || defined(__CELLOS_LV2__)
|
||||
if (true)
|
||||
#else
|
||||
if (!string_is_equal(video_display_server_get_ident(), "null"))
|
||||
if (video_display_server_has_resolution_list())
|
||||
#endif
|
||||
{
|
||||
menu_displaylist_parse_settings_enum(info->list,
|
||||
|
Loading…
x
Reference in New Issue
Block a user