Commit 2f094cbf authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

win32u: Support HiDPI for the non-client close button in WS_EX_TOOLWINDOW windows.

parent a5a0bc10
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment