Fix Android blank screen (#12604)

Hardcode the variables to 0 on Android
This commit is contained in:
ROllerozxa 2022-07-31 15:18:04 +02:00 committed by GitHub
parent c14b7536a4
commit de509d05e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -86,8 +86,12 @@ RenderingEngine::RenderingEngine(IEventReceiver *receiver)
// Resolution selection // Resolution selection
bool fullscreen = g_settings->getBool("fullscreen"); bool fullscreen = g_settings->getBool("fullscreen");
#ifdef __ANDROID__
u16 screen_w = 0, screen_h = 0;
#else
u16 screen_w = std::max<u16>(g_settings->getU16("screen_w"), 1); u16 screen_w = std::max<u16>(g_settings->getU16("screen_w"), 1);
u16 screen_h = std::max<u16>(g_settings->getU16("screen_h"), 1); u16 screen_h = std::max<u16>(g_settings->getU16("screen_h"), 1);
#endif
// bpp, fsaa, vsync // bpp, fsaa, vsync
bool vsync = g_settings->getBool("vsync"); bool vsync = g_settings->getBool("vsync");