You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Add VMR7 monitor enumeration GUID patch
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
From a1599a4f45a76a1c1d771e52660c0cdf7e6e19d5 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
||||
Date: Tue, 31 Dec 2013 03:23:19 +0100
|
||||
Subject: quartz: Return increasing monitor GUID on VMR7 monitor enumeration
|
||||
|
||||
---
|
||||
dlls/quartz/vmr9.c | 9 ++++++++-
|
||||
1 file changed, 8 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c
|
||||
index 31f3f8e..53e4942 100644
|
||||
--- a/dlls/quartz/vmr9.c
|
||||
+++ b/dlls/quartz/vmr9.c
|
||||
@@ -1314,7 +1314,14 @@ static BOOL CALLBACK get_available_monitors_proc(HMONITOR hmon, HDC hdc, LPRECT
|
||||
VMRMONITORINFO *info = args->info7++;
|
||||
memset(info, 0, sizeof(*info));
|
||||
|
||||
- info->guid.pGUID = NULL; /* FIXME */
|
||||
+ if (args->numdev > 0)
|
||||
+ {
|
||||
+ info->guid.pGUID = &info->guid.GUID;
|
||||
+ info->guid.GUID.Data4[7] = args->numdev;
|
||||
+ }
|
||||
+ else
|
||||
+ info->guid.pGUID = NULL;
|
||||
+
|
||||
CopyRect(&info->rcMonitor, &mi.rcMonitor);
|
||||
info->hMon = hmon;
|
||||
info->dwFlags = mi.dwFlags;
|
||||
--
|
||||
1.8.3.2
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
Revision: 1
|
||||
Author: Michael Müller
|
||||
Title: Return increasing monitor GUID on VMR7 monitor enumeration.
|
||||
Reference in New Issue
Block a user