Changed SDL_FlashWindow() so it doesn't take a flash count, and added the hint SDL_HINT_WINDOW_FLASH_COUNT to control behavior on Windows

This commit is contained in:
Sam Lantinga committed 2021-07-24 12:11:27 -07:00
1 parent 09d1cea733
commit e1c3a25034
14 files changed
+40 -22

No files matched your search

+2 -5
View File
@@ -1510,14 +1510,11 @@ extern DECLSPEC int SDLCALL SDL_SetWindowHitTest(SDL_Window * window,
/**
* Request a window to demand attention from the user.
*
* \param window the window to request the flashing for
* \param flash_count number of times the window gets flashed on systems that
* support flashing the window multiple times, like
* Windows, else it is ignored
* \param window the window to be flashed
* \returns 0 on success or a negative error code on failure; call
* SDL_GetError() for more information.
*/
extern DECLSPEC int SDLCALL SDL_FlashWindow(SDL_Window * window, Uint32 flash_count);
extern DECLSPEC int SDLCALL SDL_FlashWindow(SDL_Window * window);
/**
* Destroy a window.