(WGL) Declare variables at top

This commit is contained in:
twinaphex 2015-01-16 16:22:19 +01:00
parent 4b8f6ce6fa
commit bb7d33ebde

View File

@ -354,11 +354,12 @@ static void gfx_ctx_wgl_get_video_size(void *data, unsigned *width, unsigned *he
if (!g_hwnd) if (!g_hwnd)
{ {
HMONITOR hm_to_use = NULL; RECT mon_rect;
MONITORINFOEX current_mon; MONITORINFOEX current_mon;
HMONITOR hm_to_use = NULL;
monitor_info(&current_mon, &hm_to_use); monitor_info(&current_mon, &hm_to_use);
RECT mon_rect = current_mon.rcMonitor; mon_rect = current_mon.rcMonitor;
*width = mon_rect.right - mon_rect.left; *width = mon_rect.right - mon_rect.left;
*height = mon_rect.bottom - mon_rect.top; *height = mon_rect.bottom - mon_rect.top;
} }