From b03e9ef1c78c39ab48801afb5ff42e3b242cefdb Mon Sep 17 00:00:00 2001 From: 1F616EMO~nya Date: Fri, 19 Jul 2024 19:22:42 +0800 Subject: [PATCH] Set SDL_HINT_APP_NAME to Minetest (#14862) * Set SDL_HINT_APP_NAME to Minetest * Check for SDL version * Re-run docker-image check --- irr/src/CIrrDeviceSDL.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/irr/src/CIrrDeviceSDL.cpp b/irr/src/CIrrDeviceSDL.cpp index a930bec39..eada520b8 100644 --- a/irr/src/CIrrDeviceSDL.cpp +++ b/irr/src/CIrrDeviceSDL.cpp @@ -339,6 +339,10 @@ CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters ¶m) : 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;