Skip to content

Commit

Permalink
Merge pull request hrydgard#11392 from hrydgard/android-hw-scale-off
Browse files Browse the repository at this point in the history
Android: Don't use "hw scaling" on modern devices by default.
  • Loading branch information
unknownbrackets authored Sep 16, 2018
2 parents d63d2b9 + 3f849bb commit ad6938d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Core/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ad6938d

Please sign in to comment.