Fix monitors enumeration bug

Fix monitors enumeration bug. By default used MONITORINFOEXW (UTF-16 Build) with wrong structure size
This commit is contained in:
Vasiliy Nuzha 2014-10-07 02:29:20 +04:00 committed by Руслан Ижбулатов
parent 1914e65591
commit ba6522d3f2

View File

@ -83,7 +83,7 @@ enum_monitor (HMONITOR hmonitor,
monitor = _gdk_monitors + *index;
monitor_info.cbSize = sizeof (MONITORINFOEX);
monitor_info.cbSize = sizeof (MONITORINFOEXA2);
GetMonitorInfoA (hmonitor, (MONITORINFO *) &monitor_info);
#ifndef MONITORINFOF_PRIMARY