mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 13:46:37 +00:00
Fix windows build with WINVER >= Vista.
In 32e78aeb2
the definition of DWM_BLURBEHIND in win32_platform.h was
moved behind a WINVER < 0x0600 preprocessor check (< Vista). This broke
the build for WINVER >= 0x0600 since DWM_BLURBEHIND is not defined.
Starting with Vista DWM_BLURBEHIND is available in Dwmapi.h (see [1]).
So we can just include the header directly on Vista and above.
[1]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa969500(v=vs.85).aspx
This commit is contained in:
parent
0a3c4f5d80
commit
75e5b279c5
@ -120,6 +120,8 @@ typedef struct
|
||||
HRGN hRgnBlur;
|
||||
BOOL fTransitionOnMaximized;
|
||||
} DWM_BLURBEHIND;
|
||||
#else
|
||||
#include <Dwmapi.h>
|
||||
#endif /*Windows Vista*/
|
||||
|
||||
#ifndef DPI_ENUMS_DECLARED
|
||||
|
Loading…
Reference in New Issue
Block a user