From ee68df6943c78c88225c3cb6801e35cd6a22997c Mon Sep 17 00:00:00 2001 From: Matthias Kupfer Date: Wed, 4 Mar 2009 22:16:25 +0000 Subject: [PATCH] - 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 --- reactos/dll/win32/user32/windows/draw.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/reactos/dll/win32/user32/windows/draw.c b/reactos/dll/win32/user32/windows/draw.c index f274c9ddf45..70094ba1348 100644 --- a/reactos/dll/win32/user32/windows/draw.c +++ b/reactos/dll/win32/user32/windows/draw.c @@ -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: