mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
Rebase against 48f93bc3290596b8da4455496fa88cd13ea6f3c9
This commit is contained in:
parent
694f513d71
commit
11194ea339
@ -1,61 +0,0 @@
|
||||
From 42e7bd210fe641367962b04f5d8b3df4c09c2818 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
||||
Date: Tue, 19 Aug 2014 22:47:51 +0200
|
||||
Subject: [PATCH 314/358] dxgi: Improve stubs for MakeWindowAssociation and
|
||||
GetWindowAssociation.
|
||||
|
||||
---
|
||||
dlls/dxgi/dxgi_private.h | 1 +
|
||||
dlls/dxgi/factory.c | 15 ++++++++++++++-
|
||||
2 files changed, 15 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/dxgi/dxgi_private.h b/dlls/dxgi/dxgi_private.h
|
||||
index 24487c3..9c5cfcc 100644
|
||||
--- a/dlls/dxgi/dxgi_private.h
|
||||
+++ b/dlls/dxgi/dxgi_private.h
|
||||
@@ -113,6 +113,7 @@ struct dxgi_factory
|
||||
struct wined3d *wined3d;
|
||||
BOOL extended;
|
||||
HWND device_window;
|
||||
+ HWND assoc_window;
|
||||
};
|
||||
|
||||
HRESULT dxgi_factory_create(REFIID riid, void **factory, BOOL extended) DECLSPEC_HIDDEN;
|
||||
diff --git a/dlls/dxgi/factory.c b/dlls/dxgi/factory.c
|
||||
index 7fc3279..d983928 100644
|
||||
--- a/dlls/dxgi/factory.c
|
||||
+++ b/dlls/dxgi/factory.c
|
||||
@@ -174,16 +174,29 @@ static HRESULT STDMETHODCALLTYPE dxgi_factory_EnumAdapters(IWineDXGIFactory *ifa
|
||||
static HRESULT STDMETHODCALLTYPE dxgi_factory_MakeWindowAssociation(IWineDXGIFactory *iface,
|
||||
HWND window, UINT flags)
|
||||
{
|
||||
+ struct dxgi_factory *factory = impl_from_IWineDXGIFactory(iface);
|
||||
+
|
||||
FIXME("iface %p, window %p, flags %#x stub!\n", iface, window, flags);
|
||||
|
||||
+ if (!window && flags)
|
||||
+ return DXGI_ERROR_INVALID_CALL;
|
||||
+
|
||||
+ factory->assoc_window = window;
|
||||
+
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE dxgi_factory_GetWindowAssociation(IWineDXGIFactory *iface, HWND *window)
|
||||
{
|
||||
+ struct dxgi_factory *factory = impl_from_IWineDXGIFactory(iface);
|
||||
+
|
||||
FIXME("iface %p, window %p stub!\n", iface, window);
|
||||
|
||||
- return E_NOTIMPL;
|
||||
+ if (!window)
|
||||
+ return DXGI_ERROR_INVALID_CALL;
|
||||
+
|
||||
+ *window = factory->assoc_window;
|
||||
+ return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE dxgi_factory_CreateSwapChain(IWineDXGIFactory *iface,
|
||||
--
|
||||
1.9.1
|
||||
|
@ -1 +0,0 @@
|
||||
Fixes: Improve stubs for dxgi MakeWindowAssociation and GetWindowAssociation
|
@ -52,7 +52,7 @@ usage()
|
||||
# Get the upstream commit sha
|
||||
upstream_commit()
|
||||
{
|
||||
echo "1bc9c4fdb2e6c2762105c14cdafb7d4ea3370625"
|
||||
echo "48f93bc3290596b8da4455496fa88cd13ea6f3c9"
|
||||
}
|
||||
|
||||
# Show version information
|
||||
@ -137,7 +137,6 @@ patch_enable_all ()
|
||||
enable_dwrite_FontFallback="$1"
|
||||
enable_dxdiagn_Enumerate_DirectSound="$1"
|
||||
enable_dxdiagn_GetChildContainer_Leaf_Nodes="$1"
|
||||
enable_dxgi_MakeWindowAssociation="$1"
|
||||
enable_dxva2_Video_Decoder="$1"
|
||||
enable_eventfd_synchronization="$1"
|
||||
enable_explorer_Video_Registry_Key="$1"
|
||||
@ -536,9 +535,6 @@ patch_enable ()
|
||||
dxdiagn-GetChildContainer_Leaf_Nodes)
|
||||
enable_dxdiagn_GetChildContainer_Leaf_Nodes="$2"
|
||||
;;
|
||||
dxgi-MakeWindowAssociation)
|
||||
enable_dxgi_MakeWindowAssociation="$2"
|
||||
;;
|
||||
dxva2-Video_Decoder)
|
||||
enable_dxva2_Video_Decoder="$2"
|
||||
;;
|
||||
@ -3183,18 +3179,6 @@ if test "$enable_dxdiagn_GetChildContainer_Leaf_Nodes" -eq 1; then
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset dxgi-MakeWindowAssociation
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/dxgi/dxgi_private.h, dlls/dxgi/factory.c
|
||||
# |
|
||||
if test "$enable_dxgi_MakeWindowAssociation" -eq 1; then
|
||||
patch_apply dxgi-MakeWindowAssociation/0001-dxgi-Improve-stubs-for-MakeWindowAssociation-and-Get.patch
|
||||
(
|
||||
printf '%s\n' '+ { "Michael Müller", "dxgi: Improve stubs for MakeWindowAssociation and GetWindowAssociation.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset dxva2-Video_Decoder
|
||||
# |
|
||||
# | Modified files:
|
||||
|
Loading…
x
Reference in New Issue
Block a user