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
2f094cbf
Commit
2f094cbf
authored
Mar 14, 2024
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Mar 14, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Support HiDPI for the non-client close button in WS_EX_TOOLWINDOW windows.
parent
a5a0bc10
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
defwnd.c
dlls/win32u/defwnd.c
+2
-2
No files found.
dlls/win32u/defwnd.c
View file @
2f094cbf
...
...
@@ -1462,8 +1462,8 @@ static void draw_close_button( HWND hwnd, HDC hdc, BOOL down, BOOL grayed )
{
/* Windows does not use SM_CXSMSIZE and SM_CYSMSIZE
* it uses 11x11 for the close button in tool window */
const
int
bmp_height
=
11
;
const
int
bmp_width
=
11
;
int
bmp_height
=
muldiv
(
11
,
get_dpi_for_window
(
hwnd
),
96
)
;
int
bmp_width
=
bmp_height
;
int
caption_height
=
get_system_metrics
(
SM_CYSMCAPTION
);
rect
.
top
=
rect
.
top
+
(
caption_height
-
1
-
bmp_height
)
/
2
;
...
...
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