- Draw bullet for menu radio group with ellipse instead of pie.

- This is a better solution for issue #4193.
- The pie problem remains.

svn path=/trunk/; revision=39878
This commit is contained in:
Matthias Kupfer 2009-03-04 22:16:25 +00:00
parent 1ad6ef9eec
commit ee68df6943

View file

@ -1243,7 +1243,6 @@ static BOOL UITOOLS95_DrawFrameMenu(HDC dc, LPRECT r, UINT uFlags)
int i;
HBRUSH hbsave;
HPEN hpsave;
int xe, ye;
int xc, yc;
BOOL retval = TRUE;
@ -1270,8 +1269,6 @@ static BOOL UITOOLS95_DrawFrameMenu(HDC dc, LPRECT r, UINT uFlags)
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 @@ static BOOL UITOOLS95_DrawFrameMenu(HDC dc, LPRECT r, UINT uFlags)
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: