mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Fix monitors enumeration bug
Fix monitors enumeration bug. By default used MONITORINFOEXW (UTF-16 Build) with wrong structure size
This commit is contained in:
parent
1914e65591
commit
ba6522d3f2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user