mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
- Fix replaced by more flexible code for arbitrary cursor sizes
svn path=/trunk/; revision=50402
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user