summaryrefslogtreecommitdiffstats
path: root/src/nativewindow/native
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
parent3c97d2e40571d1c5c164797d9fd8d0bc8231708a (diff)
WindowsDWM: Check all methods for availability - Cleanup header
Diffstat (limited to 'src/nativewindow/native')
-rw-r--r--src/nativewindow/native/windows/WindowsDWM.c3
-rw-r--r--src/nativewindow/native/windows/WindowsDWM.h8
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_ */