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
7710e37c
Commit
7710e37c
authored
Nov 09, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Fix handling of process default DPI awareness.
It got broken by the conversion to NTUSER_DPI* values.
parent
00fb82c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sysparams.c
dlls/win32u/sysparams.c
+2
-2
No files found.
dlls/win32u/sysparams.c
View file @
7710e37c
...
@@ -2134,10 +2134,10 @@ DPI_AWARENESS get_thread_dpi_awareness(void)
...
@@ -2134,10 +2134,10 @@ DPI_AWARENESS get_thread_dpi_awareness(void)
struct
ntuser_thread_info
*
info
=
NtUserGetThreadInfo
();
struct
ntuser_thread_info
*
info
=
NtUserGetThreadInfo
();
ULONG_PTR
context
=
info
->
dpi_awareness
;
ULONG_PTR
context
=
info
->
dpi_awareness
;
if
(
!
context
)
context
=
NtUserGetProcessDpiAwarenessContext
(
NULL
);
switch
(
context
)
switch
(
context
)
{
{
case
0
:
/* process default */
return
NtUserGetProcessDpiAwarenessContext
(
NULL
)
&
3
;
case
0x10
:
case
0x10
:
case
0x11
:
case
0x11
:
case
0x12
:
case
0x12
:
...
...
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