The SDL_WINDOW_SKIP_TASKBAR flag has been replaced by the SDL_WINDOW_UTILITY flag

The SDL_WINDOW_UTILITY flag has the same functionality, and is now implemented on Windows.
This commit is contained in:
Sam Lantinga
2023-06-29 21:43:17 -07:00
parent 675fc8c38f
commit 8da9b22c17
8 changed files with 55 additions and 31 deletions

View File

@@ -122,6 +122,8 @@ static DWORD GetWindowStyleEx(SDL_Window *window)
if (SDL_WINDOW_IS_POPUP(window)) {
style = WS_EX_TOOLWINDOW | WS_EX_NOACTIVATE;
} else if (window->flags & SDL_WINDOW_UTILITY) {
style = WS_EX_TOOLWINDOW;
}
return style;
}
@@ -532,7 +534,7 @@ int WIN_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window)
if (SDL_WINDOW_IS_POPUP(window)) {
parent = window->parent->driverdata->hwnd;
} else if (window->flags & SDL_WINDOW_SKIP_TASKBAR) {
} else if (window->flags & SDL_WINDOW_UTILITY) {
parent = CreateWindow(SDL_Appname, TEXT(""), STYLE_BASIC, 0, 0, 32, 32, NULL, NULL, SDL_Instance, NULL);
}