mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 19:21:09 +00:00
Merge pull request #37 from alphanu1/alphanu1-patch-37
Linux switching incorporation
This commit is contained in:
commit
d17ce844d5
@ -84,7 +84,7 @@ bool video_display_server_set_window_decorations(bool on)
|
|||||||
|
|
||||||
|
|
||||||
bool video_display_server_switch_resolution(unsigned width, unsigned height,
|
bool video_display_server_switch_resolution(unsigned width, unsigned height,
|
||||||
int f_restore, int hz)
|
int f_restore, float hz)
|
||||||
{
|
{
|
||||||
if (current_display_server && current_display_server->switch_resolution)
|
if (current_display_server && current_display_server->switch_resolution)
|
||||||
return current_display_server->switch_resolution(current_display_server_data, width, height, f_restore, hz);
|
return current_display_server->switch_resolution(current_display_server_data, width, height, f_restore, hz);
|
||||||
|
@ -31,7 +31,7 @@ typedef struct video_display_server
|
|||||||
bool (*set_window_progress)(void *data, int progress, bool finished);
|
bool (*set_window_progress)(void *data, int progress, bool finished);
|
||||||
bool (*set_window_decorations)(void *data, bool on);
|
bool (*set_window_decorations)(void *data, bool on);
|
||||||
bool (*switch_resolution)(void *data, unsigned width,
|
bool (*switch_resolution)(void *data, unsigned width,
|
||||||
unsigned height, int f_restore, int hz);
|
unsigned height, int f_restore, float hz);
|
||||||
const char *ident;
|
const char *ident;
|
||||||
} video_display_server_t;
|
} video_display_server_t;
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ bool video_display_server_set_window_decorations(bool on);
|
|||||||
|
|
||||||
bool video_display_server_switch_resolution(
|
bool video_display_server_switch_resolution(
|
||||||
unsigned width, unsigned height,
|
unsigned width, unsigned height,
|
||||||
int f_restore, int hz);
|
int f_restore, float hz);
|
||||||
|
|
||||||
extern const video_display_server_t dispserv_win32;
|
extern const video_display_server_t dispserv_win32;
|
||||||
extern const video_display_server_t dispserv_x11;
|
extern const video_display_server_t dispserv_x11;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user