vdisp/sdl2: print version in help

This commit is contained in:
Martin Pulec
2024-09-17 09:03:33 +02:00
parent c05a49a596
commit cb1fe717c1

View File

@@ -380,6 +380,10 @@ show_help(const char *driver)
for (unsigned int i = 0; i < sizeof keybindings / sizeof keybindings[0]; ++i) {
color_printf("\t" TBOLD("'%c'") "\t - %s\n", keybindings[i].key, keybindings[i].description);
}
SDL_version ver;
SDL_GetVersion(&ver);
printf("\nSDL version (linked): %" PRIu8 ".%" PRIu8 ".%" PRIu8 "\n",
ver.major, ver.minor, ver.patch);
SDL_VideoQuit();
SDL_Quit();
}