Author: mkupfer
Date: Sun Jan 16 18:15:12 2011
New Revision: 50402
URL:
http://svn.reactos.org/svn/reactos?rev=50402&view=rev
Log:
- Fix replaced by more flexible code for arbitrary cursor sizes
Modified:
trunk/reactos/dll/win32/user32/controls/static.c
Modified: trunk/reactos/dll/win32/user32/controls/static.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/controls/…
==============================================================================
--- trunk/reactos/dll/win32/user32/controls/static.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/controls/static.c [iso-8859-1] Sun Jan 16 18:15:12
2011
@@ -863,14 +863,10 @@
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)
{