Android Fixes

This commit is contained in:
Isuru Samarathunga
2025-10-12 23:03:39 +05:30
parent ce9ea1fd52
commit 35ecd108ab
5 changed files with 27 additions and 7 deletions

View File

@ -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());