Fix #4360
This commit is contained in:
@@ -66,6 +66,13 @@ CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters& param)
|
||||
// noparachute prevents SDL from catching fatal errors.
|
||||
SDL_SetHint(SDL_HINT_NO_SIGNAL_HANDLERS, "1");
|
||||
SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");
|
||||
|
||||
#ifndef MOBILE_STK
|
||||
// Prevent fullscreen minimizes when losing focus
|
||||
if (CreationParams.Fullscreen)
|
||||
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
|
||||
#endif
|
||||
|
||||
u32 init_flags = SDL_INIT_TIMER | SDL_INIT_VIDEO;
|
||||
if (SDL_Init(init_flags) < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user