forked from pyrite-dev/milsko
gdi: check for DwmSetWindowAttribute before executing
This commit is contained in:
parent
73b320fc18
commit
790688e4cc
1 changed files with 2 additions and 1 deletions
|
|
@ -837,7 +837,8 @@ static void MwLLEndStateChangeImpl(MwLL handle) {
|
|||
static void MwLLSetDarkThemeImpl(MwLL handle, int toggle) {
|
||||
BOOL v = toggle ? TRUE : FALSE;
|
||||
|
||||
DwmSetWindowAttribute(handle->gdi.hWnd, 20, &v, sizeof(v));
|
||||
if(DwmSetWindowAttribute)
|
||||
DwmSetWindowAttribute(handle->gdi.hWnd, 20, &v, sizeof(v));
|
||||
}
|
||||
|
||||
static MwBool MwLLDoModernImpl(MwLL handle) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue