summaryrefslogtreecommitdiffstats
path: root/src/nativewindow/native/windows/WindowsDWM.c
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-04 10:57:54 +0200
committerSven Gothel <[email protected]>2011-09-04 10:57:54 +0200
commit2964e18b2f1190d12914634d24583370d98d29c5 (patch)
treeb5377160d0dc367949fd8e0dca674c30800bc585 /src/nativewindow/native/windows/WindowsDWM.c
parent3c97d2e40571d1c5c164797d9fd8d0bc8231708a (diff)
WindowsDWM: Check all methods for availability - Cleanup header
Diffstat (limited to 'src/nativewindow/native/windows/WindowsDWM.c')
-rw-r--r--src/nativewindow/native/windows/WindowsDWM.c3
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;
}
}