[Windows] Fix LLVM MinGW build.
This commit is contained in:
parent
ea9bb98f26
commit
6afb2d0225
3 changed files with 9 additions and 8 deletions
|
|
@ -1361,7 +1361,8 @@ void DisplayServerWindows::window_set_flag(WindowFlags p_flag, bool p_enabled, W
|
|||
if (p_enabled) {
|
||||
//enable per-pixel alpha
|
||||
|
||||
DWM_BLURBEHIND bb = { 0 };
|
||||
DWM_BLURBEHIND bb;
|
||||
ZeroMemory(&bb, sizeof(bb));
|
||||
HRGN hRgn = CreateRectRgn(0, 0, -1, -1);
|
||||
bb.dwFlags = DWM_BB_ENABLE | DWM_BB_BLURREGION;
|
||||
bb.hRgnBlur = hRgn;
|
||||
|
|
@ -1373,7 +1374,8 @@ void DisplayServerWindows::window_set_flag(WindowFlags p_flag, bool p_enabled, W
|
|||
//disable per-pixel alpha
|
||||
wd.layered_window = false;
|
||||
|
||||
DWM_BLURBEHIND bb = { 0 };
|
||||
DWM_BLURBEHIND bb;
|
||||
ZeroMemory(&bb, sizeof(bb));
|
||||
HRGN hRgn = CreateRectRgn(0, 0, -1, -1);
|
||||
bb.dwFlags = DWM_BB_ENABLE | DWM_BB_BLURREGION;
|
||||
bb.hRgnBlur = hRgn;
|
||||
|
|
@ -1390,7 +1392,7 @@ void DisplayServerWindows::window_set_flag(WindowFlags p_flag, bool p_enabled, W
|
|||
ERR_FAIL_COND_MSG(IsWindowVisible(wd.hWnd) && (wd.is_popup != p_enabled), "Popup flag can't changed while window is opened.");
|
||||
wd.is_popup = p_enabled;
|
||||
} break;
|
||||
case WINDOW_FLAG_MAX:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -1419,7 +1421,7 @@ bool DisplayServerWindows::window_get_flag(WindowFlags p_flag, WindowID p_window
|
|||
case WINDOW_FLAG_POPUP: {
|
||||
return wd.is_popup;
|
||||
} break;
|
||||
case WINDOW_FLAG_MAX:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue