Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b407f64

Browse files
committed
Add the SDL_DestroyWindowSurface function
1 parent 47dcc53 commit b407f64

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

‎units/sdl2.pas‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ interface
141141
{$I sdlaudio.inc} // 2.26.3
142142
{$I sdlblendmode.inc} // 2.0.14
143143
{$I sdlsurface.inc} // 2.0.14
144-
{$I sdlvideo.inc} // 2.26.0
144+
{$I sdlvideo.inc} // 2.28.0
145145
{$I sdlshape.inc} // 2.24.0
146146
{$I sdlhints.inc} // 2.26.0
147147
{$I sdlloadso.inc} // 2.24.1

‎units/sdlvideo.inc‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,21 @@ function SDL_UpdateWindowSurface(window: PSDL_Window): cint; cdecl;
989989
function SDL_UpdateWindowSurfaceRects(window: PSDL_Window; rects: PSDL_Rect; numrects: cint): cint; cdecl;
990990
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_UpdateWindowSurfaceRects' {$ENDIF} {$ENDIF};
991991

992+
{**
993+
* Destroy the surface associated with the window.
994+
*
995+
* \param window the window to update
996+
* \returns 0 on success or a negative error code on failure; call
997+
* SDL_GetError() for more information.
998+
*
999+
* \since This function is available since SDL 2.28.0.
1000+
*
1001+
* \sa SDL_GetWindowSurface
1002+
* \sa SDL_HasWindowSurface
1003+
*}
1004+
function SDL_DestroyWindowSurface(window: PSDL_Window): cint; cdecl;
1005+
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_DestroyWindowSurface' {$ENDIF} {$ENDIF};
1006+
9921007
{**
9931008
* Set a window's input grab mode.
9941009
*

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /