diff --git a/gfx/display_servers/dispserv_win32.c b/gfx/display_servers/dispserv_win32.c index 68702399ce..35d0ed367e 100644 --- a/gfx/display_servers/dispserv_win32.c +++ b/gfx/display_servers/dispserv_win32.c @@ -69,6 +69,7 @@ be received by your application before it calls any ITaskbarList3 method. static unsigned win32_orig_width = 0; static unsigned win32_orig_height = 0; static unsigned win32_orig_refresh = 0; +static int crt_center = 0; static void* win32_display_server_init(void) { @@ -107,7 +108,7 @@ static void win32_display_server_destroy(void *data) if (win32_orig_width > 0 && win32_orig_height > 0 ) video_display_server_switch_resolution(win32_orig_width, win32_orig_height, - win32_orig_refresh , (float)win32_orig_refresh ); + win32_orig_refresh , (float)win32_orig_refresh, crt_center ); #ifdef HAS_TASKBAR_EXT if (g_taskbarList && win32_taskbar_is_created()) @@ -201,7 +202,7 @@ static bool win32_display_server_set_window_decorations(void *data, bool on) } static bool win32_display_server_set_resolution(void *data, - unsigned width, unsigned height, int int_hz, float hz) + unsigned width, unsigned height, int int_hz, float hz, int center) { LONG res; DEVMODE curDevmode; diff --git a/gfx/display_servers/dispserv_x11.c b/gfx/display_servers/dispserv_x11.c index ddc4fae560..3a93980bea 100644 --- a/gfx/display_servers/dispserv_x11.c +++ b/gfx/display_servers/dispserv_x11.c @@ -108,7 +108,7 @@ static bool x11_display_server_set_window_decorations(void *data, bool on) } static bool x11_display_server_set_resolution(void *data, - unsigned width, unsigned height, int int_hz, float hz) + unsigned width, unsigned height, int int_hz, float hz, int center) { int i = 0; int hfp = 0;