fix: harden cross-platform quality tooling

This commit is contained in:
Rijad Zuzo
2026-07-30 13:42:38 +02:00
parent e284d3774d
commit 5511c295a5
7 changed files with 370 additions and 95 deletions
+2 -2
View File
@@ -22,11 +22,11 @@ func _ready() -> void:
# Setup Display Scale
# 0 auto, 1 75%, 2 100%, 3 125%, 4 150%, 5 175%, 6 200%, 7 custom
var es: EditorSettings = EditorInterface.get_editor_settings()
var ds: int = es.get_setting("interface/editor/display_scale")
var ds: int = es.get_setting("interface/editor/appearance/display_scale")
if ds == 0:
ds = 2
elif ds == 7:
display_scale = es.get_setting("interface/editor/custom_display_scale")
display_scale = es.get_setting("interface/editor/appearance/custom_display_scale")
else:
display_scale = float(ds + 2) * .25