ole32: The width of the metafile drawn should be 3 times the icon width in OleMetafilePictFromIconAndLabel.
This commit is contained in:
parent
cdb86c6c90
commit
d7d3309e0a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue