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
56b05ded
Commit
56b05ded
authored
Aug 24, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Switch to the window DPI awareness in update_window_state().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
72644bb6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
win.c
dlls/user32/win.c
+3
-0
No files found.
dlls/user32/win.c
View file @
56b05ded
...
...
@@ -446,13 +446,16 @@ static void send_parent_notify( HWND hwnd, UINT msg )
*/
static
void
update_window_state
(
HWND
hwnd
)
{
DPI_AWARENESS_CONTEXT
context
;
RECT
window_rect
,
client_rect
,
valid_rects
[
2
];
context
=
SetThreadDpiAwarenessContext
(
GetWindowDpiAwarenessContext
(
hwnd
));
WIN_GetRectangles
(
hwnd
,
COORDS_PARENT
,
&
window_rect
,
&
client_rect
);
valid_rects
[
0
]
=
valid_rects
[
1
]
=
client_rect
;
set_window_pos
(
hwnd
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
|
SWP_NOREDRAW
,
&
window_rect
,
&
client_rect
,
valid_rects
);
SetThreadDpiAwarenessContext
(
context
);
}
...
...
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