From 0938c9882a9bffa089f72fb04091c4207e8578cb Mon Sep 17 00:00:00 2001 From: CEO-Chair <87276335+CEO-Chair@users.noreply.github.com> Date: Mon, 6 Jun 2022 18:14:56 -0400 Subject: [PATCH] Change calling convention of ImGuiInputTextCallback --- src/ImGui.NET/ImGuiTextEditCallback.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ImGui.NET/ImGuiTextEditCallback.cs b/src/ImGui.NET/ImGuiTextEditCallback.cs index 04e5500..4c67dcc 100644 --- a/src/ImGui.NET/ImGuiTextEditCallback.cs +++ b/src/ImGui.NET/ImGuiTextEditCallback.cs @@ -1,4 +1,7 @@ -namespace ImGuiNET +using System.Runtime.InteropServices; + +namespace ImGuiNET { + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate int ImGuiInputTextCallback(ImGuiInputTextCallbackData* data); }