- Fix replaced by more flexible code for arbitrary cursor sizes

svn path=/trunk/; revision=50402
This commit is contained in:
Matthias Kupfer 2011-01-16 18:15:12 +00:00
parent 98fe9682e3
commit 58fa62af33

View file

@ -863,14 +863,10 @@ static void STATIC_PaintIconfn( HWND hwnd, HDC hdc, DWORD style )
else
{
BITMAP bm;
if (info.fIcon)
GetObjectW(info.hbmMask, sizeof(BITMAP), &bm);
if (!info.fIcon)
{
GetObjectW(info.hbmColor, sizeof(BITMAP), &bm);
}
else
{
bm.bmWidth = GetSystemMetrics(SM_CXCURSOR);
bm.bmHeight = GetSystemMetrics(SM_CYCURSOR);
bm.bmHeight /= 2;
}
if (style & SS_CENTERIMAGE)
{