diff --git a/gfx/context/wgl_ctx.c b/gfx/context/wgl_ctx.c index 4420336a5a..a5a9add422 100644 --- a/gfx/context/wgl_ctx.c +++ b/gfx/context/wgl_ctx.c @@ -238,11 +238,11 @@ static bool gfx_ctx_set_video_mode( (void)bits; DWORD style; - MONITORINFOEX current_mon = {0}; + MONITORINFOEX current_mon = {{0}}; current_mon.cbSize = sizeof(MONITORINFOEX); if (!g_last_hm) g_last_hm = MonitorFromWindow(GetDesktopWindow(), MONITOR_DEFAULTTONEAREST); - GetMonitorInfo(g_last_hm, (MONITORINFO *)¤t_mon); + GetMonitorInfo(g_last_hm, (MONITORINFO*)¤t_mon); g_resize_width = width; g_resize_height = height; @@ -264,7 +264,7 @@ static bool gfx_ctx_set_video_mode( goto error; // display settings might have changed, get new coordinates - GetMonitorInfo(g_last_hm, (MONITORINFO *)¤t_mon); + GetMonitorInfo(g_last_hm, (MONITORINFO*)¤t_mon); g_restore_desktop = true; } } @@ -351,9 +351,9 @@ static void gfx_ctx_destroy(void) if (g_restore_desktop) { - MONITORINFOEX current_mon = {0}; + MONITORINFOEX current_mon = {{0}}; current_mon.cbSize = sizeof(MONITORINFOEX); - GetMonitorInfo(g_last_hm, (MONITORINFO *)¤t_mon); + GetMonitorInfo(g_last_hm, (MONITORINFO*)¤t_mon); ChangeDisplaySettingsEx(current_mon.szDevice, NULL, NULL, 0, NULL); g_restore_desktop = false; }