From 3f849bb9469f42c5c4641af708c4de5120739fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 16 Sep 2018 21:05:13 +0200 Subject: [PATCH] Android: Don't use "hw scaling" on modern devices by default. It seems to cause more problems than it's worth, see #11151 --- Core/Config.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Core/Config.cpp b/Core/Config.cpp index 2b2cb0e13f..e2fd65cd88 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -510,6 +510,12 @@ static bool DefaultTimerHack() { static int DefaultAndroidHwScale() { #ifdef __ANDROID__ + if (System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= 19) { + // Arbitrary cutoff at Kitkat - modern devices are usually powerful enough that hw scaling + // doesn't really help very much and mostly causes problems. See #11151 + return 0; + } + // Get the real resolution as passed in during startup, not dp_xres and stuff int xres = System_GetPropertyInt(SYSPROP_DISPLAY_XRES); int yres = System_GetPropertyInt(SYSPROP_DISPLAY_YRES);