Added patches to make various functions in d3d8 / ddraw hotpatchable (required for fraps).

This commit is contained in:
Sebastian Lackner
2015-02-28 22:00:48 +01:00
parent 99bf902a97
commit 6c1e7ddfb2
4 changed files with 331 additions and 27 deletions

View File

@@ -0,0 +1,25 @@
From c8dd8ae321e08d94954fe011de653cc333d0cbbb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Sat, 28 Feb 2015 21:24:54 +0100
Subject: d3d8: Make IDirect3DSwapChain8::Present hotpachable.
---
dlls/d3d8/swapchain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d3d8/swapchain.c b/dlls/d3d8/swapchain.c
index 067a3e0..44fc02a 100644
--- a/dlls/d3d8/swapchain.c
+++ b/dlls/d3d8/swapchain.c
@@ -86,7 +86,7 @@ static ULONG WINAPI d3d8_swapchain_Release(IDirect3DSwapChain8 *iface)
return ref;
}
-static HRESULT WINAPI d3d8_swapchain_Present(IDirect3DSwapChain8 *iface,
+static HRESULT WINAPI DECLSPEC_HOTPATCH d3d8_swapchain_Present(IDirect3DSwapChain8 *iface,
const RECT *src_rect, const RECT *dst_rect, HWND dst_window_override,
const RGNDATA *dirty_region)
{
--
2.3.0