diff options
Diffstat (limited to 'src/nativewindow/native/windows/WindowsDWM.c')
-rw-r--r-- | src/nativewindow/native/windows/WindowsDWM.c | 3 |
1 files changed, 2 insertions, 1 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; } } |