From c0869dc89812a58d4f3abd2c6d840a58a351f405 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Mon, 2 Mar 2020 11:14:37 +0800 Subject: [PATCH] tune implementation of CreateMainWindowEx2 --- src/gui/window.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/window.c b/src/gui/window.c index 473b836b..977cce7c 100644 --- a/src/gui/window.c +++ b/src/gui/window.c @@ -4146,10 +4146,10 @@ static void ResetMenuSize (HWND hwnd) } } -HWND GUIAPI CreateMainWindowEx2 (PMAINWINCREATE pCreateInfo, +HWND GUIAPI CreateMainWindowEx2 (PMAINWINCREATE pCreateInfo, LINT id, const char* werdr_name, const WINDOW_ELEMENT_ATTR* we_attrs, - unsigned int surf_flag, int ct, DWORD ct_arg, - LINT id, LINT reserved) + unsigned int surf_flag, DWORD bkgnd_color, + int ct, DWORD ct_arg) { PMAINWIN pWin; COMPOSITINGINFO ct_info = { ct, ct_arg }; @@ -4351,8 +4351,8 @@ HWND GUIAPI CreateMainWindowEx2 (PMAINWINCREATE pCreateInfo, pWin->bottom - pWin->top); if ((surf_flag & ST_PIXEL_MASK) != ST_PIXEL_DEFAULT) { pWin->iBkColor = GAL_MapRGBA (pWin->surf->format, - GetRValue (pCreateInfo->dwBkColor), GetGValue (pCreateInfo->dwBkColor), - GetBValue (pCreateInfo->dwBkColor), GetAValue (pCreateInfo->dwBkColor)); + GetRValue (bkgnd_color), GetGValue (bkgnd_color), + GetBValue (bkgnd_color), GetAValue (bkgnd_color)); } #else pWin->pGCRInfo = &pWin->GCRInfo;