mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 05:43:40 +01:00
Use custom GetPinnableReference instead of deferring it to Span (#2345)
This commit is contained in:
parent
2cd5c5bc68
commit
3e40cad063
9 changed files with 107 additions and 52 deletions
|
|
@ -99,7 +99,7 @@ public static unsafe partial class ImGui
|
|||
|
||||
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
|
||||
fixed (int* currentItemPtr = ¤tItem)
|
||||
fixed (byte* itemsSeparatedByZerosPtr = itemsSeparatedByZeros.Span)
|
||||
fixed (byte* itemsSeparatedByZerosPtr = itemsSeparatedByZeros)
|
||||
{
|
||||
var r = ImGuiNative.Combo(labelPtr, currentItemPtr, itemsSeparatedByZerosPtr, popupMaxHeightInItems) != 0;
|
||||
label.Dispose();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue