mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 12:18:13 +00:00
- Fix replaced by more flexible code for arbitrary cursor sizes
svn path=/trunk/; revision=50402
This commit is contained in:
parent
98fe9682e3
commit
58fa62af33
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue