From bb7d33ebde3d4529611bfd1e1a50107517bd3ffd Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 16 Jan 2015 16:22:19 +0100 Subject: [PATCH] (WGL) Declare variables at top --- gfx/drivers_context/wgl_ctx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gfx/drivers_context/wgl_ctx.c b/gfx/drivers_context/wgl_ctx.c index 189956661c..f4da3e377b 100644 --- a/gfx/drivers_context/wgl_ctx.c +++ b/gfx/drivers_context/wgl_ctx.c @@ -354,11 +354,12 @@ static void gfx_ctx_wgl_get_video_size(void *data, unsigned *width, unsigned *he if (!g_hwnd) { - HMONITOR hm_to_use = NULL; + RECT mon_rect; MONITORINFOEX current_mon; + HMONITOR hm_to_use = NULL; monitor_info(¤t_mon, &hm_to_use); - RECT mon_rect = current_mon.rcMonitor; + mon_rect = current_mon.rcMonitor; *width = mon_rect.right - mon_rect.left; *height = mon_rect.bottom - mon_rect.top; }