Commit 6292c0ab authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/taskdialog: Use per-window dpi settings.

parent 40298cc6
......@@ -316,8 +316,8 @@ static void taskdialog_get_radio_button_size(struct taskdialog_info *dialog_info
hfont = (HFONT)SendMessageW(hwnd, WM_GETFONT, 0, 0);
old_hfont = SelectObject(hdc, hfont);
radio_box_width = 12 * GetDeviceCaps(hdc, LOGPIXELSX) / 96 + 1;
radio_box_height = 12 * GetDeviceCaps(hdc, LOGPIXELSY) / 96 + 1;
radio_box_width = 12 * GetDpiForWindow(hwnd) / 96 + 1;
radio_box_height = 12 * GetDpiForWindow(hwnd) / 96 + 1;
GetCharWidthW(hdc, '0', '0', &text_offset);
text_offset /= 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