Change default rendering resolution on Linux to auto

This commit is contained in:
TotalCaesar659 2020-07-04 01:16:36 +03:00 committed by GitHub
parent b2106f15c3
commit 833e91516d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -517,8 +517,8 @@ static ConfigSetting cpuSettings[] = {
};
static int DefaultInternalResolution() {
// Auto on Windows, 2x on large screens, 1x elsewhere.
#if defined(USING_WIN_UI)
// Auto on Windows and Linux, 2x on large screens, 1x elsewhere.
#if defined(USING_WIN_UI) || defined(USING_QT_UI)
return 0;
#else
int longestDisplaySide = std::max(System_GetPropertyInt(SYSPROP_DISPLAY_XRES), System_GetPropertyInt(SYSPROP_DISPLAY_YRES));