[gtk+/gtk-3-14] Fix monitors enumeration bug



commit 7f406f2db1eb57052ccd8d583ea9834ce4cdfcd3
Author: Vasiliy Nuzha <v nuzha gmail com>
Date:   Tue Oct 7 02:29:20 2014 +0400

    Fix monitors enumeration bug
    
    Fix monitors enumeration bug. By default used MONITORINFOEXW (UTF-16 Build) with wrong structure size

 gdk/win32/gdkdisplay-win32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c
index 694d22c..2d73c30 100644
--- a/gdk/win32/gdkdisplay-win32.c
+++ b/gdk/win32/gdkdisplay-win32.c
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]