Set SDL_HINT_APP_NAME to Minetest (#14862)

* Set SDL_HINT_APP_NAME to Minetest

* Check for SDL version

* Re-run docker-image check
This commit is contained in:
1F616EMO~nya 2024-07-19 19:22:42 +08:00 committed by GitHub
parent 8e59d8b682
commit b03e9ef1c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -339,6 +339,10 @@ CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters &param) :
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0");
#if defined(SDL_HINT_APP_NAME)
SDL_SetHint(SDL_HINT_APP_NAME, "Minetest");
#endif
u32 flags = SDL_INIT_TIMER | SDL_INIT_EVENTS;
if (CreationParams.DriverType != video::EDT_NULL)
flags |= SDL_INIT_VIDEO;