mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
Added dxgi-SetMaximumFrameLatency patchset
This commit is contained in:
parent
409261dc56
commit
792181ca4e
@ -0,0 +1,26 @@
|
||||
From 012441a764762063b3037d060769fea4356a295c Mon Sep 17 00:00:00 2001
|
||||
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
|
||||
Date: Wed, 18 Apr 2018 03:55:14 +0000
|
||||
Subject: [PATCH] dxgi: Return S_OK in SetMaximumFrameLatency
|
||||
|
||||
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
|
||||
---
|
||||
dlls/dxgi/device.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/dxgi/device.c b/dlls/dxgi/device.c
|
||||
index c266cae..ee5f3e6 100644
|
||||
--- a/dlls/dxgi/device.c
|
||||
+++ b/dlls/dxgi/device.c
|
||||
@@ -262,7 +262,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_device_SetMaximumFrameLatency(IWineDXGIDev
|
||||
if (max_latency > DXGI_FRAME_LATENCY_MAX)
|
||||
return DXGI_ERROR_INVALID_CALL;
|
||||
|
||||
- return E_NOTIMPL;
|
||||
+ return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE dxgi_device_GetMaximumFrameLatency(IWineDXGIDevice *iface, UINT *max_latency)
|
||||
--
|
||||
1.9.1
|
||||
|
1
patches/dxgi-SetMaximumFrameLatency/definition
Normal file
1
patches/dxgi-SetMaximumFrameLatency/definition
Normal file
@ -0,0 +1 @@
|
||||
Fixes: [44061] Return S_OK from GetMaximumFrameLatency
|
@ -149,6 +149,7 @@ patch_enable_all ()
|
||||
enable_dxdiagn_GetChildContainer_Leaf_Nodes="$1"
|
||||
enable_dxgi_GammaRamp="$1"
|
||||
enable_dxgi_MakeWindowAssociation="$1"
|
||||
enable_dxgi_SetMaximumFrameLatency="$1"
|
||||
enable_dxva2_Video_Decoder="$1"
|
||||
enable_explorer_Video_Registry_Key="$1"
|
||||
enable_fonts_Missing_Fonts="$1"
|
||||
@ -636,6 +637,9 @@ patch_enable ()
|
||||
dxgi-MakeWindowAssociation)
|
||||
enable_dxgi_MakeWindowAssociation="$2"
|
||||
;;
|
||||
dxgi-SetMaximumFrameLatency)
|
||||
enable_dxgi_SetMaximumFrameLatency="$2"
|
||||
;;
|
||||
dxva2-Video_Decoder)
|
||||
enable_dxva2_Video_Decoder="$2"
|
||||
;;
|
||||
@ -3766,6 +3770,21 @@ if test "$enable_dxgi_MakeWindowAssociation" -eq 1; then
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset dxgi-SetMaximumFrameLatency
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
# | * [#44061] Return S_OK from GetMaximumFrameLatency
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/dxgi/device.c
|
||||
# |
|
||||
if test "$enable_dxgi_SetMaximumFrameLatency" -eq 1; then
|
||||
patch_apply dxgi-SetMaximumFrameLatency/0001-dxgi-Return-S_OK-in-SetMaximumFrameLatency.patch
|
||||
(
|
||||
printf '%s\n' '+ { "Alistair Leslie-Hughes", "dxgi: Return S_OK in SetMaximumFrameLatency.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset dxva2-Video_Decoder
|
||||
# |
|
||||
# | Modified files:
|
||||
|
Loading…
x
Reference in New Issue
Block a user