isle: log SDL version at start up

This commit is contained in:
Anonymous Maarten 2025-12-18 19:25:19 +01:00
parent 438c074e5e
commit c163741fde

View File

@ -45,6 +45,7 @@
#define SDL_MAIN_USE_CALLBACKS
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
#include <SDL3/SDL_revision.h>
#include <errno.h>
#include <iniparser.h>
#include <stdlib.h>
@ -308,6 +309,17 @@ SDL_AppResult SDL_AppInit(void** appstate, int argc, char** argv)
{
*appstate = NULL;
{
int version = SDL_GetVersion();
SDL_Log(
"SDL version %d.%d.%d (%s)",
SDL_VERSIONNUM_MAJOR(version),
SDL_VERSIONNUM_MINOR(version),
SDL_VERSIONNUM_MICRO(version),
SDL_GetRevision()
);
}
SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0");
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");