Commit 25f34789 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

comctl32: Make icons not overlapping in LVS_ICON mode.

parent 8276a337
......@@ -8564,10 +8564,12 @@ static DWORD LISTVIEW_SetIconSpacing(LISTVIEW_INFO *infoPtr, INT cx, INT cy)
if (cy == -1) cy = GetSystemMetrics(SM_CYICONSPACING);
/* if 0 then compute width
* FIXME: Should scan each item and determine max width of
* icon or label, then make that the width */
if (cx == 0)
cx = infoPtr->iconSpacing.cx;
* FIXME: computed cx and cy is not matching native behaviour */
if (cx == 0) {
cx = GetSystemMetrics(SM_CXICONSPACING);
if (infoPtr->iconSize.cx + ICON_LR_PADDING > cx)
cx = infoPtr->iconSize.cx + ICON_LR_PADDING;
}
/* if 0 then compute height */
if (cy == 0)
......
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