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
5ffed883
Commit
5ffed883
authored
Feb 09, 2024
by
Fabian Maurer
Committed by
Alexandre Julliard
Feb 13, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/sysparams: Handle more contexts in GetAwarenessFromDpiAwarenessContext.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55630
parent
d34cbe61
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
sysparams.c
dlls/user32/sysparams.c
+4
-0
sysparams.c
dlls/user32/tests/sysparams.c
+0
-3
No files found.
dlls/user32/sysparams.c
View file @
5ffed883
...
...
@@ -656,14 +656,18 @@ DPI_AWARENESS WINAPI GetAwarenessFromDpiAwarenessContext( DPI_AWARENESS_CONTEXT
case
0x10
:
case
0x11
:
case
0x12
:
case
0x22
:
case
0x80000010
:
case
0x80000011
:
case
0x80000012
:
case
0x80000022
:
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
;
case
(
ULONG_PTR
)
DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2
:
return
~
(
ULONG_PTR
)
DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE
;
default:
return
DPI_AWARENESS_INVALID
;
}
...
...
dlls/user32/tests/sysparams.c
View file @
5ffed883
...
...
@@ -3940,7 +3940,6 @@ static void test_dpi_context(void)
ok
(
awareness
==
(
i
&
~
0x10
),
"%Ix: wrong value %u
\n
"
,
i
,
awareness
);
break
;
case
0x22
:
todo_wine
ok
(
awareness
==
DPI_AWARENESS_PER_MONITOR_AWARE
||
broken
(
awareness
==
DPI_AWARENESS_INVALID
)
/* Win10 1709+ */
,
"%Ix: wrong value %u
\n
"
,
i
,
awareness
);
break
;
...
...
@@ -3967,7 +3966,6 @@ static void test_dpi_context(void)
ok
(
awareness
==
(
i
&
~
0x10
),
"%Ix: wrong value %u
\n
"
,
i
|
0x80000000
,
awareness
);
break
;
case
0x22
:
todo_wine
ok
(
awareness
==
DPI_AWARENESS_PER_MONITOR_AWARE
||
broken
(
awareness
==
DPI_AWARENESS_INVALID
)
/* Win10 1709+ */
,
"%Ix: wrong value %u
\n
"
,
i
,
awareness
);
break
;
...
...
@@ -3989,7 +3987,6 @@ static void test_dpi_context(void)
ok
(
pIsValidDpiAwarenessContext
(
(
DPI_AWARENESS_CONTEXT
)
~
i
),
"%Ix: not valid
\n
"
,
~
i
);
break
;
case
(
ULONG_PTR
)
DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2
:
todo_wine
ok
(
awareness
==
DPI_AWARENESS_PER_MONITOR_AWARE
||
broken
(
awareness
==
DPI_AWARENESS_INVALID
),
"%Ix: wrong value %u
\n
"
,
~
i
,
awareness
);
break
;
case
(
ULONG_PTR
)
DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED
:
...
...
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