From 6133291e78c5064929d17dcf2ae20e73358aeb84 Mon Sep 17 00:00:00 2001 From: Patrick Dawson Date: Mon, 26 Aug 2024 19:49:42 +0200 Subject: [PATCH] Fix format --- addons/imgui-godot/ImGuiGodot/ImGuiController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/imgui-godot/ImGuiGodot/ImGuiController.cs b/addons/imgui-godot/ImGuiGodot/ImGuiController.cs index 4597d4b..69f2f80 100644 --- a/addons/imgui-godot/ImGuiGodot/ImGuiController.cs +++ b/addons/imgui-godot/ImGuiGodot/ImGuiController.cs @@ -1,7 +1,6 @@ #if GODOT_PC #nullable enable using Godot; -using ImGuiGodot.Internal; using ImGuiNET; namespace ImGuiGodot; @@ -25,7 +24,8 @@ public override void _Ready() public override void _Process(double delta) { Internal.State.Instance.InProcessFrame = true; - Internal.State.Instance.Update(delta, Internal.State.Instance.Layer.UpdateViewport().ToImVec2()); + var vpSize = Internal.State.Instance.Layer.UpdateViewport(); + Internal.State.Instance.Update(delta, new(vpSize.X, vpSize.Y)); } }