diff --git a/interface/custom_ui.gd b/interface/custom_ui.gd index 56cef5b..c5917fc 100644 --- a/interface/custom_ui.gd +++ b/interface/custom_ui.gd @@ -20,9 +20,9 @@ func _on_viewport_size_changed(): print("[View] Window size is: ", window_size) var scaling_factor if window_size.x < window_size.y: - scaling_factor = window_size.x / 270 + scaling_factor = window_size.x / 270.0 else: - scaling_factor = window_size.y / 480 + scaling_factor = window_size.y / 480.0 print("[View] Scaling factor is: ", scaling_factor) get_window().set_content_scale_factor(scaling_factor) game_safe_ui.set_safe_margins(scaling_factor)