Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/SlimApp/platforms/win32.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

#ifdef SA_Win11
#include <dwmapi.h>
#endif // optional Windows 11 Mica - Make sure to link to dwmapi.lib!
#ifndef NDEBUG
#include <tchar.h>
#include <stdio.h>
Expand Down Expand Up @@ -276,6 +278,12 @@ int APIENTRY WinMain(HINSTANCE hInstance,
hInstance,
null
);
#ifdef SA_Win11
int wDm = 1;
int wBgType = 2;
DwmSetWindowAttribute(window,20,&wDm,4);
DwmSetWindowAttribute(window,38,&wBgType,4);
#endif // optional Windows 11 Mica - Make sure to link to dwmapi.lib!
if (!window)
return -1;

Expand Down Expand Up @@ -303,4 +311,4 @@ int APIENTRY WinMain(HINSTANCE hInstance,
}

return 0;
}
}