mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-23 03:02:04 +00:00
Create video_display_server_get_resolution_list
This commit is contained in:
parent
fdb4d2b6ad
commit
0ae3d3873d
@ -282,7 +282,8 @@ static bool win32_display_server_set_resolution(void *data,
|
||||
return true;
|
||||
}
|
||||
|
||||
unsigned win32_display_server_get_resolution_list(struct video_display_config **conf)
|
||||
unsigned win32_display_server_get_resolution_list(void *data,
|
||||
struct video_display_config **conf)
|
||||
{
|
||||
unsigned i;
|
||||
unsigned len = 0;
|
||||
|
@ -98,6 +98,13 @@ bool video_display_server_switch_resolution(unsigned width, unsigned height,
|
||||
return false;
|
||||
}
|
||||
|
||||
unsigned video_display_server_get_resolution_list(struct video_display_config **list)
|
||||
{
|
||||
if (current_display_server && current_display_server->get_resolution_list)
|
||||
return current_display_server->get_resolution_list(current_display_server_data, list);
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *video_display_server_get_output_options(void)
|
||||
{
|
||||
if (current_display_server && current_display_server->get_output_options)
|
||||
|
@ -42,7 +42,8 @@ typedef struct video_display_server
|
||||
bool (*set_window_decorations)(void *data, bool on);
|
||||
bool (*switch_resolution)(void *data, unsigned width,
|
||||
unsigned height, int int_hz, float hz, int center);
|
||||
unsigned (*get_resolution_list)(struct video_display_config **conf);
|
||||
unsigned (*get_resolution_list)(void *data,
|
||||
struct video_display_config **conf);
|
||||
const char *(*get_output_options)(void *data);
|
||||
const char *ident;
|
||||
} video_display_server_t;
|
||||
@ -61,6 +62,9 @@ bool video_display_server_switch_resolution(
|
||||
unsigned width, unsigned height,
|
||||
int int_hz, float hz, int center);
|
||||
|
||||
unsigned video_display_server_get_resolution_list(
|
||||
struct video_display_config **list);
|
||||
|
||||
const char *video_display_server_get_output_options(void);
|
||||
|
||||
const char *video_display_server_get_ident(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user