Patch by Benedikt Freisen: Fix wrong vertical position when painting 3D bottom line in menus.

See issue #4906 for more details.

svn path=/trunk/; revision=47260
This commit is contained in:
Timo Kreuzer 2010-05-17 22:56:24 +00:00
parent d30bfb803d
commit eaa70d8318

View file

@ -2206,8 +2206,8 @@ DrawMenuBarTemp(HWND Wnd, HDC DC, LPRECT Rect, HMENU Menu, HFONT Font)
SelectObject(DC, GetStockObject(DC_PEN));
SetDCPenColor(DC, GetSysColor(COLOR_3DFACE));
MoveToEx(DC, Rect->left, Rect->bottom, NULL);
LineTo(DC, Rect->right, Rect->bottom);
MoveToEx(DC, Rect->left, Rect->bottom - 1, NULL);
LineTo(DC, Rect->right, Rect->bottom - 1);
if (0 == MenuInfo.MenuItemCount)
{