Merge pull request #2673 from hpwamr/mui

+ chg: Adjust the position of "grepWinNP3" icon.
This commit is contained in:
Pairi Daiza 2020-08-17 20:44:49 +02:00 committed by GitHub
commit d2a4b761a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,8 +47,8 @@ static LRESULT DrawGrepWinIcon(HWND hWnd)
{
BeginPaint(hWnd, &ps);
int const dpiSized = CDPIAware::Instance().Scale(hWnd, 64);
int const dpiLeft = CDPIAware::Instance().Scale(hWnd, 22);
int const dpiTop = CDPIAware::Instance().Scale(hWnd, 44);
int const dpiLeft = CDPIAware::Instance().Scale(hWnd, 12);
int const dpiTop = CDPIAware::Instance().Scale(hWnd, 12);
HBRUSH const hBrush = (HBRUSH)GetSysColorBrush(COLOR_3DFACE);
DrawIconEx(hDC, dpiLeft, dpiTop, g_hDlgIcon128, dpiSized, dpiSized, 0, hBrush, DI_NORMAL);
ReleaseDC(hWnd, hDC);