mirror of
https://github.com/libretro/RetroArch
synced 2025-02-04 21:40:02 +00:00
(WGL) Declare variables at top
This commit is contained in:
parent
4b8f6ce6fa
commit
bb7d33ebde
@ -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(¤t_mon, &hm_to_use);
|
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;
|
*width = mon_rect.right - mon_rect.left;
|
||||||
*height = mon_rect.bottom - mon_rect.top;
|
*height = mon_rect.bottom - mon_rect.top;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user