Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed Aug 26, 2024
1 parent 687b7be commit 6133291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/imgui-godot/ImGuiGodot/ImGuiController.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#if GODOT_PC
#nullable enable
using Godot;
using ImGuiGodot.Internal;
using ImGuiNET;

namespace ImGuiGodot;
Expand All @@ -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));
}
}

Expand Down

0 comments on commit 6133291

Please sign in to comment.