aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/settings.gd10
1 files changed, 7 insertions, 3 deletions
diff --git a/client/settings.gd b/client/settings.gd
index a17e79fa..e7d3092e 100644
--- a/client/settings.gd
+++ b/client/settings.gd
@@ -134,9 +134,13 @@ static func h_taa(enabled):
Global.get_viewport().use_taa = enabled
static func h_scale_mode(mode: String):
- match mode:
- "resize": Global.get_tree().root.content_scale_mode = Window.CONTENT_SCALE_MODE_CANVAS_ITEMS
- "disabled": Global.get_tree().root.content_scale_mode = Window.CONTENT_SCALE_MODE_DISABLED
+ var root = Global.get_tree().root
+ if OS.has_feature("movie"):
+ root.content_scale_mode = Window.CONTENT_SCALE_MODE_VIEWPORT
+ root.content_scale_aspect = Window.CONTENT_SCALE_ASPECT_KEEP
+ else: match mode:
+ "resize": root.content_scale_mode = Window.CONTENT_SCALE_MODE_CANVAS_ITEMS
+ "disabled": root.content_scale_mode = Window.CONTENT_SCALE_MODE_DISABLED
static func h_scale_factor(value: float):
Global.get_tree().root.content_scale_factor = value