Fix monitors enumeration bug
Fix monitors enumeration bug. By default used MONITORINFOEXW (UTF-16 Build) with wrong structure size
This commit is contained in:
committed by
Руслан Ижбулатов
parent
ea205f75d2
commit
7f406f2db1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user