Commit d7d3309e authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: The width of the metafile drawn should be 3 times the icon width in…

ole32: The width of the metafile drawn should be 3 times the icon width in OleMetafilePictFromIconAndLabel.
parent cdb86c6c
......@@ -91,8 +91,11 @@ HGLOBAL WINAPI OleMetafilePictFromIconAndLabel(HICON hIcon, LPOLESTR lpszLabel,
GetTextExtentPoint32W(hdcScreen, lpszLabel, lstrlenW(lpszLabel), &text_size);
SelectObject(hdcScreen, screen_old_font);
ReleaseDC(NULL, hdcScreen);
width = 3 * icon_width;
}
width = max(text_size.cx, icon_width);
else
width = icon_width;
SetWindowOrgEx(hdc, 0, 0, NULL);
SetWindowExtEx(hdc, width, label_offset + text_size.cy, NULL);
......
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