Skip to content

Commit 480be6e

Browse files
committed
Fix dwm shadow flash white edge problem.
1 parent d09f8ec commit 480be6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DmMain/src/Core/DMHWnd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ namespace DM
13921392
HRESULT hr = thisApp->m_fun_DwmSetWindowAttribute(m_hWnd, DWMWA_NCRENDERING_POLICY, &v, sizeof(v));
13931393

13941394
if (bEnabled && SUCCEEDED(hr)) {
1395-
MARGINS margins = { margin };
1395+
MARGINS margins = { margin, margin, margin, margin };
13961396
hr = thisApp->m_fun_DwmExtendFrameIntoClientArea(m_hWnd, &margins);
13971397
return SUCCEEDED(hr);
13981398
}

0 commit comments

Comments
 (0)