Android Fixes
This commit is contained in:
@ -47,10 +47,12 @@ namespace ia::iae
|
||||
|
||||
IAE_LOG_INFO("Booting IAEngine for ", g_gameName);
|
||||
|
||||
SDL_SetHint(SDL_HINT_ORIENTATIONS, "LandscapeRight");
|
||||
|
||||
if (!SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_GAMEPAD))
|
||||
THROW_UNKNOWN("Failed to intialize SDL: ", SDL_GetError());
|
||||
|
||||
if (!(g_windowHandle = SDL_CreateWindow(g_gameName.c_str(), config.ScreenWidth, config.ScreenHeight,
|
||||
if (!(g_windowHandle = SDL_CreateWindow(g_gameName.c_str(), config->ScreenWidth, config->ScreenHeight,
|
||||
SDL_WINDOW_RESIZABLE)))
|
||||
THROW_UNKNOWN("Failed to create the SDL window: ", SDL_GetError());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user