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
7489efa0
Commit
7489efa0
authored
Aug 27, 2020
by
Derek Lesho
Committed by
Alexandre Julliard
Aug 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shcore: Add GetScaleFactorForDevice() stub.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
21c99970
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
main.c
dlls/shcore/main.c
+7
-0
shcore.spec
dlls/shcore/shcore.spec
+1
-1
shellscalingapi.h
include/shellscalingapi.h
+7
-0
No files found.
dlls/shcore/main.c
View file @
7489efa0
...
@@ -86,6 +86,13 @@ HRESULT WINAPI GetScaleFactorForMonitor(HMONITOR monitor, DEVICE_SCALE_FACTOR *s
...
@@ -86,6 +86,13 @@ HRESULT WINAPI GetScaleFactorForMonitor(HMONITOR monitor, DEVICE_SCALE_FACTOR *s
return
S_OK
;
return
S_OK
;
}
}
DEVICE_SCALE_FACTOR
WINAPI
GetScaleFactorForDevice
(
DISPLAY_DEVICE_TYPE
device_type
)
{
FIXME
(
"%d
\n
"
,
device_type
);
return
SCALE_100_PERCENT
;
}
HRESULT
WINAPI
_IStream_Read
(
IStream
*
stream
,
void
*
dest
,
ULONG
size
)
HRESULT
WINAPI
_IStream_Read
(
IStream
*
stream
,
void
*
dest
,
ULONG
size
)
{
{
ULONG
read
;
ULONG
read
;
...
...
dlls/shcore/shcore.spec
View file @
7489efa0
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
@ stub GetDpiForShellUIComponent
@ stub GetDpiForShellUIComponent
@ stdcall GetProcessDpiAwareness(long ptr)
@ stdcall GetProcessDpiAwareness(long ptr)
@ stdcall GetProcessReference(ptr)
@ stdcall GetProcessReference(ptr)
@ st
ub GetScaleFactorForDevice
@ st
dcall GetScaleFactorForDevice(long)
@ stdcall GetScaleFactorForMonitor(long ptr)
@ stdcall GetScaleFactorForMonitor(long ptr)
@ stub IStream_Copy
@ stub IStream_Copy
@ stdcall IStream_Read(ptr ptr long) _IStream_Read
@ stdcall IStream_Read(ptr ptr long) _IStream_Read
...
...
include/shellscalingapi.h
View file @
7489efa0
...
@@ -36,8 +36,15 @@ typedef enum PROCESS_DPI_AWARENESS
...
@@ -36,8 +36,15 @@ typedef enum PROCESS_DPI_AWARENESS
PROCESS_PER_MONITOR_DPI_AWARE
PROCESS_PER_MONITOR_DPI_AWARE
}
PROCESS_DPI_AWARENESS
;
}
PROCESS_DPI_AWARENESS
;
typedef
enum
{
DEVICE_PRIMARY
=
0
,
DEVICE_IMMERSIVE
=
1
,
}
DISPLAY_DEVICE_TYPE
;
HRESULT
WINAPI
GetDpiForMonitor
(
HMONITOR
,
MONITOR_DPI_TYPE
,
UINT
*
,
UINT
*
);
HRESULT
WINAPI
GetDpiForMonitor
(
HMONITOR
,
MONITOR_DPI_TYPE
,
UINT
*
,
UINT
*
);
HRESULT
WINAPI
GetProcessDpiAwareness
(
HANDLE
,
PROCESS_DPI_AWARENESS
*
);
HRESULT
WINAPI
GetProcessDpiAwareness
(
HANDLE
,
PROCESS_DPI_AWARENESS
*
);
DEVICE_SCALE_FACTOR
WINAPI
GetScaleFactorForDevice
(
DISPLAY_DEVICE_TYPE
device_type
);
HRESULT
WINAPI
GetScaleFactorForMonitor
(
HMONITOR
,
DEVICE_SCALE_FACTOR
*
);
HRESULT
WINAPI
GetScaleFactorForMonitor
(
HMONITOR
,
DEVICE_SCALE_FACTOR
*
);
HRESULT
WINAPI
SetProcessDpiAwareness
(
PROCESS_DPI_AWARENESS
);
HRESULT
WINAPI
SetProcessDpiAwareness
(
PROCESS_DPI_AWARENESS
);
...
...
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