mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-26 12:27:44 +00:00
SDL_GetWindows() follows the SDL_GetStringRule
This commit is contained in:
@@ -533,7 +533,7 @@ SDL_DYNAPI_PROC(int,SDL_GetWindowSizeInPixels,(SDL_Window *a, int *b, int *c),(a
|
||||
SDL_DYNAPI_PROC(SDL_Surface*,SDL_GetWindowSurface,(SDL_Window *a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_GetWindowSurfaceVSync,(SDL_Window *a, int *b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(const char*,SDL_GetWindowTitle,(SDL_Window *a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_Window**,SDL_GetWindows,(int *a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_Window* const*,SDL_GetWindows,(int *a),(a),return)
|
||||
SDL_DYNAPI_PROC(const char * const *,SDL_GlobDirectory,(const char *a, const char *b, SDL_GlobFlags c, int *d),(a,b,c,d),return)
|
||||
SDL_DYNAPI_PROC(const char * const *,SDL_GlobStorageDirectory,(SDL_Storage *a, const char *b, const char *c, SDL_GlobFlags d, int *e),(a,b,c,d,e),return)
|
||||
SDL_DYNAPI_PROC(SDL_bool,SDL_HapticEffectSupported,(SDL_Haptic *a, const SDL_HapticEffect *b),(a,b),return)
|
||||
|
||||
@@ -2056,7 +2056,7 @@ void SDL_ToggleDragAndDropSupport(void)
|
||||
}
|
||||
}
|
||||
|
||||
SDL_Window **SDLCALL SDL_GetWindows(int *count)
|
||||
SDL_Window * const *SDLCALL SDL_GetWindows(int *count)
|
||||
{
|
||||
if (count) {
|
||||
*count = 0;
|
||||
@@ -2091,7 +2091,7 @@ SDL_Window **SDLCALL SDL_GetWindows(int *count)
|
||||
if (count) {
|
||||
*count = num_added;
|
||||
}
|
||||
return windows;
|
||||
return SDL_FreeLater(windows);
|
||||
}
|
||||
|
||||
static void ApplyWindowFlags(SDL_Window *window, SDL_WindowFlags flags)
|
||||
|
||||
Reference in New Issue
Block a user