From 068f45ba3e41e21c1ff84e3e0c7bf048a55f5511 Mon Sep 17 00:00:00 2001 From: Eric Mellino Date: Thu, 11 Oct 2018 18:52:48 -0700 Subject: [PATCH] Fix MemoryEditor compilation. --- src/ImGui.NET.SampleProgram/MemoryEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImGui.NET.SampleProgram/MemoryEditor.cs b/src/ImGui.NET.SampleProgram/MemoryEditor.cs index 5d265cc..8286d15 100644 --- a/src/ImGui.NET.SampleProgram/MemoryEditor.cs +++ b/src/ImGui.NET.SampleProgram/MemoryEditor.cs @@ -145,7 +145,7 @@ namespace ImGuiNET var flags = ImGuiInputTextFlags.CharsHexadecimal | ImGuiInputTextFlags.EnterReturnsTrue | ImGuiInputTextFlags.AutoSelectAll | ImGuiInputTextFlags.NoHorizontalScroll | ImGuiInputTextFlags.AlwaysInsertMode | ImGuiInputTextFlags.CallbackAlways; - if (ImGui.InputText("##data", DataInput, 32, flags, callback, &cursor_pos)) + if (ImGui.InputText("##data", DataInput, 32, flags, callback, (IntPtr)(&cursor_pos))) data_write = data_next = true; else if (!DataEditingTakeFocus && !ImGui.IsItemActive()) DataEditingAddr = -1;