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
d9675421
Commit
d9675421
authored
Feb 24, 2024
by
Fabian Maurer
Committed by
Alexandre Julliard
Feb 27, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Move get_awareness_from_dpi_awareness_context.
parent
777a9d0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
sysparams.c
dlls/win32u/sysparams.c
+21
-21
No files found.
dlls/win32u/sysparams.c
View file @
d9675421
...
...
@@ -2187,6 +2187,27 @@ UINT get_win_monitor_dpi( HWND hwnd )
return
system_dpi
;
}
/* see GetAwarenessFromDpiAwarenessContext */
static
DPI_AWARENESS
get_awareness_from_dpi_awareness_context
(
DPI_AWARENESS_CONTEXT
context
)
{
switch
((
ULONG_PTR
)
context
)
{
case
0x10
:
case
0x11
:
case
0x12
:
case
0x80000010
:
case
0x80000011
:
case
0x80000012
:
return
(
ULONG_PTR
)
context
&
3
;
case
(
ULONG_PTR
)
DPI_AWARENESS_CONTEXT_UNAWARE
:
case
(
ULONG_PTR
)
DPI_AWARENESS_CONTEXT_SYSTEM_AWARE
:
case
(
ULONG_PTR
)
DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE
:
return
~
(
ULONG_PTR
)
context
;
default:
return
DPI_AWARENESS_INVALID
;
}
}
/**********************************************************************
* get_thread_dpi_awareness
*/
...
...
@@ -2240,27 +2261,6 @@ UINT get_system_dpi(void)
return
system_dpi
;
}
/* see GetAwarenessFromDpiAwarenessContext */
static
DPI_AWARENESS
get_awareness_from_dpi_awareness_context
(
DPI_AWARENESS_CONTEXT
context
)
{
switch
((
ULONG_PTR
)
context
)
{
case
0x10
:
case
0x11
:
case
0x12
:
case
0x80000010
:
case
0x80000011
:
case
0x80000012
:
return
(
ULONG_PTR
)
context
&
3
;
case
(
ULONG_PTR
)
DPI_AWARENESS_CONTEXT_UNAWARE
:
case
(
ULONG_PTR
)
DPI_AWARENESS_CONTEXT_SYSTEM_AWARE
:
case
(
ULONG_PTR
)
DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE
:
return
~
(
ULONG_PTR
)
context
;
default:
return
DPI_AWARENESS_INVALID
;
}
}
/**********************************************************************
* SetThreadDpiAwarenessContext (win32u.so)
*/
...
...
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