mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
video: Fix asserts calling SetWindowProgress{State,Value} when creating popup windows
This commit is contained in:
parent
7877ed1802
commit
e4c5b72fd7
1 changed files with 5 additions and 3 deletions
|
|
@ -2309,9 +2309,11 @@ static void SDL_FinishWindowCreation(SDL_Window *window, SDL_WindowFlags flags)
|
|||
}
|
||||
|
||||
#if defined(SDL_PLATFORM_LINUX)
|
||||
// On Linux the progress state is persisted throughout multiple program runs, so reset state on window creation
|
||||
SDL_SetWindowProgressState(window, SDL_PROGRESS_STATE_NONE);
|
||||
SDL_SetWindowProgressValue(window, 0.0f);
|
||||
if (!SDL_WINDOW_IS_POPUP(window)) {
|
||||
// On Linux the progress state is persisted throughout multiple program runs, so reset state on window creation
|
||||
SDL_SetWindowProgressState(window, SDL_PROGRESS_STATE_NONE);
|
||||
SDL_SetWindowProgressValue(window, 0.0f);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue