mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
Added patch for shcore.GetProcessDpiAwareness stub.
This commit is contained in:
parent
bcc980d580
commit
8e6776a691
@ -0,0 +1,44 @@
|
||||
From 3d855b15e9f99f1cc3168cc9e606cb698e078a4b Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Sat, 6 Feb 2016 02:38:14 +0100
|
||||
Subject: shcore: Add stub for GetProcessDpiAwareness.
|
||||
|
||||
---
|
||||
dlls/shcore/main.c | 7 +++++++
|
||||
dlls/shcore/shcore.spec | 2 +-
|
||||
2 files changed, 8 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/shcore/main.c b/dlls/shcore/main.c
|
||||
index ce0d9ed..f2d362d 100644
|
||||
--- a/dlls/shcore/main.c
|
||||
+++ b/dlls/shcore/main.c
|
||||
@@ -50,6 +50,13 @@ HRESULT WINAPI SetProcessDpiAwareness(PROCESS_DPI_AWARENESS value)
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
+HRESULT WINAPI GetProcessDpiAwareness(HANDLE process, PROCESS_DPI_AWARENESS *value)
|
||||
+{
|
||||
+ FIXME("(%p, %p): stub\n", process, value);
|
||||
+ if (value) *value = PROCESS_DPI_UNAWARE;
|
||||
+ return S_OK;
|
||||
+}
|
||||
+
|
||||
HRESULT WINAPI GetDpiForMonitor(HMONITOR monitor, MONITOR_DPI_TYPE type, UINT *x, UINT *y)
|
||||
{
|
||||
HDC hDC;
|
||||
diff --git a/dlls/shcore/shcore.spec b/dlls/shcore/shcore.spec
|
||||
index 4d6e845..34f989f 100644
|
||||
--- a/dlls/shcore/shcore.spec
|
||||
+++ b/dlls/shcore/shcore.spec
|
||||
@@ -8,7 +8,7 @@
|
||||
@ stdcall GetCurrentProcessExplicitAppUserModelID(ptr) shell32.GetCurrentProcessExplicitAppUserModelID
|
||||
@ stdcall GetDpiForMonitor(long long ptr ptr)
|
||||
@ stub GetDpiForShellUIComponent
|
||||
-@ stub GetProcessDpiAwareness
|
||||
+@ stdcall GetProcessDpiAwareness(long ptr)
|
||||
@ stub GetProcessReference
|
||||
@ stub GetScaleFactorForDevice
|
||||
@ stub GetScaleFactorForMonitor
|
||||
--
|
||||
2.7.0
|
||||
|
@ -2657,6 +2657,7 @@ if test "$enable_api_ms_win_Stub_DLLs" -eq 1; then
|
||||
patch_apply api-ms-win-Stub_DLLs/0031-shcore-Add-SetProcessDpiAwareness-stub.patch
|
||||
patch_apply api-ms-win-Stub_DLLs/0032-shcore-Implement-stub-for-GetDpiForMonitor.patch
|
||||
patch_apply api-ms-win-Stub_DLLs/0033-kernelbase-Add-stub-for-QuirkIsEnabled3.patch
|
||||
patch_apply api-ms-win-Stub_DLLs/0034-shcore-Add-stub-for-GetProcessDpiAwareness.patch
|
||||
(
|
||||
echo '+ { "Michael Müller", "api-ms-win-core-com-l1-1-1: Add dll.", 1 },';
|
||||
echo '+ { "Michael Müller", "kernelbase: Add dll and add stub for QuirkIsEnabled.", 1 },';
|
||||
@ -2691,6 +2692,7 @@ if test "$enable_api_ms_win_Stub_DLLs" -eq 1; then
|
||||
echo '+ { "Sebastian Lackner", "shcore: Add SetProcessDpiAwareness stub.", 1 },';
|
||||
echo '+ { "Sebastian Lackner", "shcore: Implement stub for GetDpiForMonitor.", 1 },';
|
||||
echo '+ { "Michael Müller", "kernelbase: Add stub for QuirkIsEnabled3.", 1 },';
|
||||
echo '+ { "Sebastian Lackner", "shcore: Add stub for GetProcessDpiAwareness.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user