mirror of
https://github.com/minetest/minetest.git
synced 2024-12-22 22:22:23 +01:00
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:
parent
8e59d8b682
commit
b03e9ef1c7
@ -339,6 +339,10 @@ CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters ¶m) :
|
|||||||
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
|
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
|
||||||
SDL_SetHint(SDL_HINT_MOUSE_TOUCH_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;
|
u32 flags = SDL_INIT_TIMER | SDL_INIT_EVENTS;
|
||||||
if (CreationParams.DriverType != video::EDT_NULL)
|
if (CreationParams.DriverType != video::EDT_NULL)
|
||||||
flags |= SDL_INIT_VIDEO;
|
flags |= SDL_INIT_VIDEO;
|
||||||
|
Loading…
Reference in New Issue
Block a user