Skip to content

Commit 47dcc53

Browse files
committed
Add the SDL_HasWindowSurface function
1 parent e4b90dc commit 47dcc53

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

units/sdlvideo.inc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,19 @@ procedure SDL_RestoreWindow(window: PSDL_Window); cdecl;
935935
function SDL_SetWindowFullscreen(window: PSDL_Window; flags: TSDL_WindowFlags): cint; cdecl;
936936
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_SetWindowFullscreen' {$ENDIF} {$ENDIF};
937937

938+
{**
939+
* Return whether the window has a surface associated with it.
940+
*
941+
* \returns SDL_TRUE if there is a surface associated with the window, or
942+
* SDL_FALSE otherwise.
943+
*
944+
* \since This function is available since SDL 2.28.0.
945+
*
946+
* \sa SDL_GetWindowSurface
947+
*}
948+
function SDL_HasWindowSurface(window: PSDL_Window): TSDL_Bool; cdecl;
949+
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_HasWindowSurface' {$ENDIF} {$ENDIF};
950+
938951
{**
939952
* Get the SDL surface associated with the window.
940953
*

0 commit comments

Comments
 (0)