[gtk+] Fix monitors enumeration bug
- From: Руслан Ижбулатов <ruslanizhb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix monitors enumeration bug
- Date: Mon, 6 Oct 2014 22:53:28 +0000 (UTC)
commit ba6522d3f26da92a0ef4173afe35d73a7286ab43
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]