Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4a4bf34f
Commit
4a4bf34f
authored
Jan 24, 2018
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jan 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shcore: Implement semi-stub for GetDpiForMonitor.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
225f8bea
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
2 deletions
+19
-2
api-ms-win-shcore-scaling-l1-1-1.spec
...core-scaling-l1-1-1/api-ms-win-shcore-scaling-l1-1-1.spec
+1
-1
Makefile.in
dlls/shcore/Makefile.in
+1
-0
main.c
dlls/shcore/main.c
+16
-0
shcore.spec
dlls/shcore/shcore.spec
+1
-1
No files found.
dlls/api-ms-win-shcore-scaling-l1-1-1/api-ms-win-shcore-scaling-l1-1-1.spec
View file @
4a4bf34f
@ st
ub
GetDpiForMonitor
@ st
dcall GetDpiForMonitor(long long ptr ptr) shcore.
GetDpiForMonitor
@ stdcall GetProcessDpiAwareness(long ptr) shcore.GetProcessDpiAwareness
@ stub GetScaleFactorForDevice
@ stub GetScaleFactorForMonitor
...
...
dlls/shcore/Makefile.in
View file @
4a4bf34f
MODULE
=
shcore.dll
IMPORTS
=
user32 gdi32
C_SRCS
=
\
main.c
dlls/shcore/main.c
View file @
4a4bf34f
...
...
@@ -21,6 +21,8 @@
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "shellscalingapi.h"
#include "wine/debug.h"
...
...
@@ -48,3 +50,17 @@ HRESULT WINAPI GetProcessDpiAwareness(HANDLE process, PROCESS_DPI_AWARENESS *val
if
(
value
)
*
value
=
PROCESS_DPI_UNAWARE
;
return
S_OK
;
}
HRESULT
WINAPI
GetDpiForMonitor
(
HMONITOR
monitor
,
MONITOR_DPI_TYPE
type
,
UINT
*
x
,
UINT
*
y
)
{
HDC
hDC
;
FIXME
(
"(%p, %u, %p, %p): semi-stub
\n
"
,
monitor
,
type
,
x
,
y
);
hDC
=
GetDC
(
0
);
if
(
x
)
*
x
=
GetDeviceCaps
(
hDC
,
LOGPIXELSX
);
if
(
y
)
*
y
=
GetDeviceCaps
(
hDC
,
LOGPIXELSY
);
ReleaseDC
(
0
,
hDC
);
return
S_OK
;
}
dlls/shcore/shcore.spec
View file @
4a4bf34f
...
...
@@ -7,7 +7,7 @@
@ stub DllGetActivationFactory
@ stdcall -private DllGetClassObject(ptr ptr ptr) shell32.DllGetClassObject
@ stdcall GetCurrentProcessExplicitAppUserModelID(ptr) shell32.GetCurrentProcessExplicitAppUserModelID
@ st
ub GetDpiForMonitor
@ st
dcall GetDpiForMonitor(long long ptr ptr)
@ stub GetDpiForShellUIComponent
@ stdcall GetProcessDpiAwareness(long ptr)
@ stub GetProcessReference
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment