Author: tkreuzer
Date: Wed Feb 6 03:43:15 2008
New Revision: 32146
URL:
http://svn.reactos.org/svn/reactos?rev=32146&view=rev
Log:
use syscolor brush for menu background, fixes a brush leak.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/menu.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/menu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/menu.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/menu.c Wed Feb 6 03:43:15 2008
@@ -346,8 +346,7 @@
Menu->MenuInfo.fMask = 0; /* not used */
Menu->MenuInfo.dwStyle = 0; /* FIXME */
Menu->MenuInfo.cyMax = 0; /* default */
- Menu->MenuInfo.hbrBack =
- NtGdiCreateSolidBrush(RGB(192, 192, 192), 0); /* FIXME: default background color
*/
+ Menu->MenuInfo.hbrBack = IntGetSysColorBrush(COLOR_MENU);
Menu->MenuInfo.dwContextHelpID = 0; /* default */
Menu->MenuInfo.dwMenuData = 0; /* default */
Menu->MenuInfo.Self = *Handle;
@@ -1995,7 +1994,7 @@
Rect.top += YMove;
Rect.right += XMove;
Rect.bottom += YMove;
-
+
Status = MmCopyToCaller(lprcItem, &Rect, sizeof(RECT));
if (! NT_SUCCESS(Status))
{