Skip to content

Commit 0e7f36b

Browse files
Improve: SDL_VERSION_ATLEAST macro
1 parent ea4db46 commit 0e7f36b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

units/sdl3.pas

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,7 @@ function SDL_VERSION: Integer;
108108

109109
function SDL_VERSION_ATLEAST(X, Y, Z: Integer): Boolean;
110110
begin
111-
if (SDL_VERSION >= SDL_VERSIONNUM(X, Y, Z)) then
112-
Result:=True
113-
else
114-
Result:=False;
111+
Result := SDL_VERSION >= SDL_VERSIONNUM(X, Y, Z);
115112
end;
116113

117114
end.

0 commit comments

Comments
 (0)