mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-16 06:45:59 +00:00
Fixed warning C4204: nonstandard extension used: non-constant aggregate initializer when built with Visual Studio 2019
This commit is contained in:
@@ -719,7 +719,11 @@ int WIN_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_PropertiesI
|
||||
We can use (-1, -1, 0, 0) boundary to make sure no pixels are being blurred
|
||||
*/
|
||||
HRGN rgn = CreateRectRgn(-1, -1, 0, 0);
|
||||
DWM_BLURBEHIND bb = {DWM_BB_ENABLE | DWM_BB_BLURREGION, TRUE, rgn, FALSE};
|
||||
DWM_BLURBEHIND bb;
|
||||
bb.flags = (DWM_BB_ENABLE | DWM_BB_BLURREGION);
|
||||
bb.enable = TRUE;
|
||||
bb.blur_region = rgn;
|
||||
bb.transition_on_maxed = FALSE;
|
||||
DwmEnableBlurBehindWindowFunc(hwnd, &bb);
|
||||
DeleteObject(rgn);
|
||||
}
|
||||
|
Reference in New Issue
Block a user