Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Switch
RetroArch
RetroArch
Commits
0ae3d387
Commit
0ae3d387
authored
Nov 24, 2018
by
twinaphex
Browse files
Create video_display_server_get_resolution_list
parent
fdb4d2b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
gfx/display_servers/dispserv_win32.c
View file @
0ae3d387
...
...
@@ -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
;
...
...
gfx/video_display_server.c
View file @
0ae3d387
...
...
@@ -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
)
...
...
gfx/video_display_server.h
View file @
0ae3d387
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment