update SDL3 to latest commit

This commit is contained in:
Sasha Szpakowski
2024-10-06 20:30:44 -03:00
parent 1b0fdc338b
commit 9e5eb1b018
1426 changed files with 242456 additions and 103496 deletions
+2 -2
View File
@@ -15,7 +15,7 @@
static void tryOpenURL(const char *url)
{
SDL_Log("Opening '%s' ...", url);
if (SDL_OpenURL(url) == 0) {
if (SDL_OpenURL(url)) {
SDL_Log(" success!");
} else {
SDL_Log(" failed! %s", SDL_GetError());
@@ -25,7 +25,7 @@ static void tryOpenURL(const char *url)
int main(int argc, char **argv)
{
int i;
if (SDL_Init(SDL_INIT_VIDEO) == -1) {
if (!SDL_Init(SDL_INIT_VIDEO)) {
SDL_Log("SDL_Init failed: %s\n", SDL_GetError());
return 1;
}