Commit 7aeefa30 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

user32: Remember to draw the icon when SS_CENTERIMAGE is set.

parent 5d72acf7
......@@ -759,15 +759,11 @@ static void STATIC_PaintIconfn( HWND hwnd, HDC hdc, DWORD style )
iconRect.top = (rc.bottom - rc.top) / 2 - info->nHeight / 2;
iconRect.right = iconRect.left + info->nWidth;
iconRect.bottom = iconRect.top + info->nHeight;
FillRect( hdc, &rc, hbrush );
}
else
{
FillRect( hdc, &rc, hbrush );
DrawIconEx( hdc, rc.left, rc.top, hIcon, rc.right - rc.left,
rc.bottom - rc.top, 0, NULL, DI_NORMAL );
}
}
if (info) GlobalUnlock16(HICON_16(hIcon));
}
......
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