Set minimal SCALE value to 0.5

This commit is contained in:
Jipok 2021-12-21 14:33:35 +05:00
parent 35011d7e7b
commit 64ccf8fdca
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@ VERSION = "@PROJECT_VERSION@"
MOD_VERSION = "2" MOD_VERSION = "2"
SCALE = tonumber(os.getenv("LITE_SCALE") or os.getenv("GDK_SCALE") or os.getenv("QT_SCALE_FACTOR")) or SCALE SCALE = tonumber(os.getenv("LITE_SCALE") or os.getenv("GDK_SCALE") or os.getenv("QT_SCALE_FACTOR")) or SCALE
SCALE = math.max(SCALE, 0.5)
PATHSEP = package.config:sub(1, 1) PATHSEP = package.config:sub(1, 1)
EXEDIR = EXEFILE:match("^(.+)[/\\][^/\\]+$") EXEDIR = EXEFILE:match("^(.+)[/\\][^/\\]+$")