Skip to content

Commit fed0b63

Browse files
committed
Update SDL_surface.inc to match SDL 3.2.20
1 parent 20eb3d3 commit fed0b63

File tree

2 files changed

+221
-111
lines changed

2 files changed

+221
-111
lines changed

units/SDL3.pas

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ interface
9292
{$I SDL_blendmode.inc} // 3.1.6-prev
9393
{$I SDL_iostream.inc} // 3.2.0
9494
{$I SDL_asyncio.inc} // 3.2.0
95-
{$I SDL_surface.inc} // 3.1.6-prev
95+
{$I SDL_surface.inc} // 3.2.20
9696
{$I SDL_video.inc} // 3.1.6-prev
9797
{$I SDL_timer.inc} // 3.1.6-prev
9898
{$I SDL_error.inc} // 3.1.6-prev
@@ -311,6 +311,12 @@ function SDL_SCANCODE_TO_KEYCODE(X: TSDL_Scancode): TSDL_Keycode;
311311
Result:=X or SDLK_SCANCODE_MASK;
312312
end;
313313

314+
{ Macros from SDL_surface.h }
315+
function SDL_MUSTLOCK(Const S: PSDL_Surface): Boolean;
316+
begin
317+
Result:=(S^.flags and SDL_SURFACE_LOCK_NEEDED)=SDL_SURFACE_LOCK_NEEDED;
318+
end;
319+
314320
{ Macros from SDL_video.h }
315321
function SDL_WINDOWPOS_UNDEFINED_DISPLAY(X: Integer): Integer;
316322
begin

0 commit comments

Comments
 (0)