diff options
Diffstat (limited to 'src/nativewindow')
-rw-r--r-- | src/nativewindow/native/windows/WindowsDWM.c | 3 | ||||
-rw-r--r-- | src/nativewindow/native/windows/WindowsDWM.h | 8 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/nativewindow/native/windows/WindowsDWM.c b/src/nativewindow/native/windows/WindowsDWM.c index 4240e50a8..cc9ed6d8c 100644 --- a/src/nativewindow/native/windows/WindowsDWM.c +++ b/src/nativewindow/native/windows/WindowsDWM.c @@ -37,7 +37,8 @@ static int initWindowsDWM() { _DwmIsCompositionEnabled = (DwmIsCompositionEnabledPROCADDR) GetProcAddressA (shell, "DwmIsCompositionEnabled"); _DwmEnableBlurBehindWindow = (DwmEnableBlurBehindWindowPROCADDR) GetProcAddressA (shell, "DwmEnableBlurBehindWindow"); _DwmExtendFrameIntoClientArea = (DwmExtendFrameIntoClientAreaPROCADDR) GetProcAddressA (shell, "DwmExtendFrameIntoClientArea"); - if(NULL != _DwmEnableBlurBehindWindow && NULL != _DwmExtendFrameIntoClientArea) { + if(NULL != _DwmEnableComposition && NULL != _DwmIsCompositionEnabled && + NULL != _DwmEnableBlurBehindWindow && NULL != _DwmExtendFrameIntoClientArea) { _init = 2; } } diff --git a/src/nativewindow/native/windows/WindowsDWM.h b/src/nativewindow/native/windows/WindowsDWM.h index 742db1628..36f82fc94 100644 --- a/src/nativewindow/native/windows/WindowsDWM.h +++ b/src/nativewindow/native/windows/WindowsDWM.h @@ -29,12 +29,4 @@ BOOL DwmEnableBlurBehindWindow(HWND hwnd, const DWM_BLURBEHIND* pBlurBehind); BOOL DwmExtendFrameIntoClientArea(HWND hwnd, const MARGINS *pMarInset); - /* - DWM_BLURBEHIND bb = {0}; - bb.dwFlags = DWM_BB_ENABLE; - bb.fEnable = true; - bb.hRgnBlur = NULL; - DwmEnableBlurBehindWindow(hWnd, &bb); - */ - #endif /* _WINDOWS_DWM_H_ */ |