mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 05:31:39 +00:00
win32u: Support HiDPI for the non-client close button in WS_EX_TOOLWINDOW windows.
This commit is contained in:
parent
a5a0bc10f9
commit
2f094cbfe6
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue