Commit 0ae3d387 authored by twinaphex's avatar twinaphex
Browse files

Create video_display_server_get_resolution_list

parent fdb4d2b6
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment