diff --git a/src/backend/gdi.c b/src/backend/gdi.c index 3a68f91..1df263b 100644 --- a/src/backend/gdi.c +++ b/src/backend/gdi.c @@ -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) {