https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0828e16462cebf5f32325…
commit 0828e16462cebf5f323250aa4b4a86e43e45cef3
Author: Zebediah Figura <z.figura12(a)gmail.com>
AuthorDate: Fri Apr 19 22:39:13 2019 -0500
Commit: Stanislav Motylkov <x86corez(a)gmail.com>
CommitDate: Mon Nov 21 23:08:09 2022 +0300
[WINESYNC][USER32] MDI_AugmentFrameMenu(): Use GetSysColorBrush()
Import applicable part of wine-4.7 commit:
https://source.winehq.org/git/wine.git/commit/8d251a1dd1d523bd20c30b355b794…
Follow-up to 0.4.15-dev-5248-g be014129a57.
---
win32ss/user/user32/windows/mdi.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/win32ss/user/user32/windows/mdi.c b/win32ss/user/user32/windows/mdi.c
index 9424b4cfe6e..55bac41aa57 100644
--- a/win32ss/user/user32/windows/mdi.c
+++ b/win32ss/user/user32/windows/mdi.c
@@ -919,7 +919,6 @@ static BOOL MDI_AugmentFrameMenu( HWND frame, HWND hChild )
{
HDC hMemDC;
HBITMAP hBitmap, hOldBitmap;
- HBRUSH hBrush;
HDC hdc = GetDC(hChild);
if (hdc)
@@ -931,10 +930,8 @@ static BOOL MDI_AugmentFrameMenu( HWND frame, HWND hChild )
hBitmap = CreateCompatibleBitmap(hdc, cx, cy);
hOldBitmap = SelectObject(hMemDC, hBitmap);
SetMapMode(hMemDC, MM_TEXT);
- hBrush = CreateSolidBrush(GetSysColor(COLOR_MENU));
- DrawIconEx(hMemDC, 0, 0, hIcon, cx, cy, 0, hBrush, DI_NORMAL);
+ DrawIconEx(hMemDC, 0, 0, hIcon, cx, cy, 0, GetSysColorBrush(COLOR_MENU),
DI_NORMAL);
SelectObject (hMemDC, hOldBitmap);
- DeleteObject(hBrush);
DeleteDC(hMemDC);
ReleaseDC(hChild, hdc);
hSysMenuBitmap = hBitmap;