Fix compiler warnings.
This commit is contained in:
parent
24124ebdfc
commit
f605e8acf2
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue