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
72644bb6
Commit
72644bb6
authored
Aug 24, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Switch to the window DPI awareness to process WM_GETMINMAXINFO.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0da23418
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
winpos.c
dlls/user32/winpos.c
+4
-0
No files found.
dlls/user32/winpos.c
View file @
72644bb6
...
...
@@ -748,6 +748,7 @@ static void WINPOS_ShowIconTitle( HWND hwnd, BOOL bShow )
*/
MINMAXINFO
WINPOS_GetMinMaxInfo
(
HWND
hwnd
)
{
DPI_AWARENESS_CONTEXT
context
;
MINMAXINFO
MinMax
;
HMONITOR
monitor
;
INT
xinc
,
yinc
;
...
...
@@ -757,6 +758,8 @@ MINMAXINFO WINPOS_GetMinMaxInfo( HWND hwnd )
RECT
rc
;
WND
*
win
;
context
=
SetThreadDpiAwarenessContext
(
GetWindowDpiAwarenessContext
(
hwnd
));
/* Compute default values */
GetWindowRect
(
hwnd
,
&
rc
);
...
...
@@ -842,6 +845,7 @@ MINMAXINFO WINPOS_GetMinMaxInfo( HWND hwnd )
MinMax
.
ptMaxTrackSize
.
y
=
max
(
MinMax
.
ptMaxTrackSize
.
y
,
MinMax
.
ptMinTrackSize
.
y
);
SetThreadDpiAwarenessContext
(
context
);
return
MinMax
;
}
...
...
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