update SDL3 to 3.2.6.

This commit is contained in:
Sasha Szpakowski
2025-03-02 14:42:35 -04:00
parent 3582488fbc
commit 30709de450
407 changed files with 20390 additions and 5388 deletions
+6 -6
View File
@@ -21,7 +21,7 @@ const SDL_DialogFileFilter filters[3] = {
{ "PNG images", "png" }
};
static void SDLCALL callback(void* userdata, const char* const* files, int filter) {
static void SDLCALL callback(void *userdata, const char * const *files, int filter) {
if (files) {
const char* filter_name = "(filter fetching unsupported)";
@@ -33,14 +33,14 @@ static void SDLCALL callback(void* userdata, const char* const* files, int filte
}
}
SDL_Log("Filter used: '%s'\n", filter_name);
SDL_Log("Filter used: '%s'", filter_name);
while (*files) {
SDL_Log("'%s'\n", *files);
SDL_Log("'%s'", *files);
files++;
}
} else {
SDL_Log("Error: %s\n", SDL_GetError());
SDL_Log("Error: %s", SDL_GetError());
}
}
@@ -82,7 +82,7 @@ int main(int argc, char *argv[])
return 1;
}
if (!SDL_CreateWindowAndRenderer("testdialog", 640, 480, 0, &w, &r)) {
SDL_Log("Failed to create window and/or renderer: %s\n", SDL_GetError());
SDL_Log("Failed to create window and/or renderer: %s", SDL_GetError());
SDL_Quit();
return 1;
}
@@ -90,7 +90,7 @@ int main(int argc, char *argv[])
initial_path = SDL_GetUserFolder(SDL_FOLDER_HOME);
if (!initial_path) {
SDL_Log("Will not use an initial path, couldn't get the home directory path: %s\n", SDL_GetError());
SDL_Log("Will not use an initial path, couldn't get the home directory path: %s", SDL_GetError());
}
while (1) {