Author: mkupfer
Date: Thu Mar 5 01:16:25 2009
New Revision: 39878
URL:
http://svn.reactos.org/svn/reactos?rev=39878&view=rev
Log:
- Draw bullet for menu radio group with ellipse instead of pie.
- This is a better solution for issue #4193.
- The pie problem remains.
Modified:
trunk/reactos/dll/win32/user32/windows/draw.c
Modified: trunk/reactos/dll/win32/user32/windows/draw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/d…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/draw.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/draw.c [iso-8859-1] Thu Mar 5 01:16:25 2009
@@ -1243,7 +1243,6 @@
int i;
HBRUSH hbsave;
HPEN hpsave;
- int xe, ye;
int xc, yc;
BOOL retval = TRUE;
@@ -1270,8 +1269,6 @@
break;
case DFCS_MENUBULLET:
- xe = myr.left;
- ye = myr.top + SmallDiam - SmallDiam/2;
xc = myr.left + SmallDiam - SmallDiam/2;
yc = myr.top + SmallDiam - SmallDiam/2;
i = 234*SmallDiam/750;
@@ -1280,8 +1277,7 @@
myr.right = xc + i/2;
myr.top = yc - i/2;
myr.bottom = yc + i/2;
- // if the start and the end point are equal, Pie() only draws a single line,
so start one pixel lower
- Pie(dc, myr.left, myr.top, myr.right, myr.bottom, xe, ye+1, xe, ye);
+ Ellipse(dc, myr.left, myr.top, myr.right, myr.bottom);
break;
case DFCS_MENUCHECK: