Explorar el Código

Use `Vector2.Zero` instead of `new Vector2(0, 0)`

Dragon hace 4 años
padre
commit
ee13aec871
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      Interface.cs

+ 2 - 2
Interface.cs

@@ -156,7 +156,7 @@ namespace HuntBuddy
 
 			var fontGlobalScale = ImGui.GetIO().FontGlobalScale;
 
-			ImGui.SetNextWindowSize(new Vector2(0, 0), ImGuiCond.Always);
+			ImGui.SetNextWindowSize(Vector2.Zero, ImGuiCond.Always);
 
 			var windowFlags = ImGuiWindowFlags.NoNavInputs;
 
@@ -222,7 +222,7 @@ namespace HuntBuddy
 
 		private void DrawConfiguration()
 		{
-			ImGui.SetNextWindowSize(new Vector2(0, 0), ImGuiCond.Always);
+			ImGui.SetNextWindowSize(Vector2.Zero, ImGuiCond.Always);
 
 			if (!ImGui.Begin($"{_plugin.Name} settings"))
 			{