Remove CCS viewport letterboxing

This commit is contained in:
hz
2026-08-07 19:17:20 -05:00
parent 91690b2fe9
commit 2b25e25424
4 changed files with 18 additions and 12 deletions
+3 -3
View File
@@ -379,6 +379,6 @@ func _fit_stage() -> void:
var available := size
if available.x <= 0.0 or available.y <= 0.0:
return
var fit_scale := minf(available.x / DESIGN_SIZE.x, available.y / DESIGN_SIZE.y)
stage_root.scale = Vector2.ONE * fit_scale
stage_root.position = (available - DESIGN_SIZE * fit_scale) * 0.5
stage_root.scale = Vector2.ONE
stage_root.position = Vector2.ZERO
stage_root.size = available