Add SDL_WindowID type for SDL_Window id

This commit is contained in:
Sylvain
2023-01-04 10:27:28 +01:00
committed by Sam Lantinga
parent 86c6376140
commit 6863f0b2d8
5 changed files with 22 additions and 17 deletions

View File

@@ -39,6 +39,9 @@
extern "C" {
#endif
typedef Uint32 SDL_WindowID;
/**
* \brief The structure that defines a display mode
*
@@ -743,7 +746,7 @@ extern DECLSPEC SDL_Window * SDLCALL SDL_CreateWindowFrom(const void *data);
*
* \sa SDL_GetWindowFromID
*/
extern DECLSPEC Uint32 SDLCALL SDL_GetWindowID(SDL_Window * window);
extern DECLSPEC SDL_WindowID SDLCALL SDL_GetWindowID(SDL_Window * window);
/**
* Get a window from a stored ID.
@@ -759,7 +762,7 @@ extern DECLSPEC Uint32 SDLCALL SDL_GetWindowID(SDL_Window * window);
*
* \sa SDL_GetWindowID
*/
extern DECLSPEC SDL_Window * SDLCALL SDL_GetWindowFromID(Uint32 id);
extern DECLSPEC SDL_Window * SDLCALL SDL_GetWindowFromID(SDL_WindowID id);
/**
* Get the window flags.