From 2964e18b2f1190d12914634d24583370d98d29c5 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 4 Sep 2011 10:57:54 +0200 Subject: WindowsDWM: Check all methods for availability - Cleanup header --- src/nativewindow/native/windows/WindowsDWM.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/nativewindow/native/windows/WindowsDWM.c') 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; } } -- cgit v1.2.3