Rename switch_resolution to set_resolution

This commit is contained in:
twinaphex 2018-11-24 10:35:32 +01:00
parent 7730828560
commit a561f789e2
4 changed files with 7 additions and 7 deletions

View File

@ -107,7 +107,7 @@ static void win32_display_server_destroy(void *data)
dispserv_win32_t *dispserv = (dispserv_win32_t*)data;
if (win32_orig_width > 0 && win32_orig_height > 0)
video_display_server_switch_resolution(win32_orig_width, win32_orig_height,
video_display_server_set_resolution(win32_orig_width, win32_orig_height,
win32_orig_refresh, (float)win32_orig_refresh, crt_center );
#ifdef HAS_TASKBAR_EXT

View File

@ -88,7 +88,7 @@ static void switch_res_crt(unsigned width, unsigned height)
{
if (height > 100)
{
video_display_server_switch_resolution(width, height,
video_display_server_set_resolution(width, height,
ra_set_core_hz, ra_core_hz, crt_center_adjust);
video_driver_apply_state_changes();
}

View File

@ -90,11 +90,11 @@ bool video_display_server_set_window_decorations(bool on)
}
bool video_display_server_switch_resolution(unsigned width, unsigned height,
bool video_display_server_set_resolution(unsigned width, unsigned height,
int int_hz, float hz, int center)
{
if (current_display_server && current_display_server->switch_resolution)
return current_display_server->switch_resolution(current_display_server_data, width, height, int_hz, hz, center);
if (current_display_server && current_display_server->set_resolution)
return current_display_server->set_resolution(current_display_server_data, width, height, int_hz, hz, center);
return false;
}

View File

@ -40,7 +40,7 @@ typedef struct video_display_server
bool (*set_window_opacity)(void *data, unsigned opacity);
bool (*set_window_progress)(void *data, int progress, bool finished);
bool (*set_window_decorations)(void *data, bool on);
bool (*switch_resolution)(void *data, unsigned width,
bool (*set_resolution)(void *data, unsigned width,
unsigned height, int int_hz, float hz, int center);
void *(*get_resolution_list)(void *data,
unsigned *size);
@ -58,7 +58,7 @@ bool video_display_server_set_window_progress(int progress, bool finished);
bool video_display_server_set_window_decorations(bool on);
bool video_display_server_switch_resolution(
bool video_display_server_set_resolution(
unsigned width, unsigned height,
int int_hz, float hz, int center);