Fix compilation error

This commit is contained in:
Soreepeong 2025-08-05 03:28:32 +09:00
parent 7e5485f42d
commit 7eccce1dd7
2 changed files with 4 additions and 2 deletions

View file

@ -412,11 +412,11 @@ public static unsafe partial class ImGui
}
}
public static bool MenuItem(ImU8String label, bool enabled = true)
public static bool MenuItem(ImU8String label, bool selected = false, bool enabled = true)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
{
var r = ImGuiNative.MenuItem(labelPtr, null, null, enabled ? (byte)1 : (byte)0) != 0;
var r = ImGuiNative.MenuItem(labelPtr, null, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0) != 0;
label.Dispose();
return r;
}