aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorROllerozxa <temporaryemail4meh+github@gmail.com>2022-07-31 15:18:04 +0200
committerGitHub <noreply@github.com>2022-07-31 15:18:04 +0200
commitde509d05e629566daa6953b4845077e8ad07d98a (patch)
tree49262ed4bc0136a7b56d3dd5735c372ebc1e4ac9 /src/client
parentc14b7536a460899701f7694dbf95225a39307b51 (diff)
downloadminetest-de509d05e629566daa6953b4845077e8ad07d98a.tar.gz
minetest-de509d05e629566daa6953b4845077e8ad07d98a.tar.bz2
minetest-de509d05e629566daa6953b4845077e8ad07d98a.zip
Fix Android blank screen (#12604)
Hardcode the variables to 0 on Android
Diffstat (limited to 'src/client')
-rw-r--r--src/client/renderingengine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/renderingengine.cpp b/src/client/renderingengine.cpp
index ea2dbfa80..9698b63bb 100644
--- a/src/client/renderingengine.cpp
+++ b/src/client/renderingengine.cpp
@@ -86,8 +86,12 @@ RenderingEngine::RenderingEngine(IEventReceiver *receiver)
// Resolution selection
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_h = std::max<u16>(g_settings->getU16("screen_h"), 1);
+#endif
// bpp, fsaa, vsync
bool vsync = g_settings->getBool("vsync");