Răsfoiți Sursa

Drag and drop: Increase local payload buffer from 8 to 16 bytes.

omar 5 ani în urmă
părinte
comite
ca30ef4269
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      imgui_internal.h

+ 1 - 1
imgui_internal.h

@@ -1053,7 +1053,7 @@ struct ImGuiContext
     ImGuiID                 DragDropAcceptIdPrev;               // Target item id from previous frame (we need to store this to allow for overlapping drag and drop targets)
     int                     DragDropAcceptFrameCount;           // Last time a target expressed a desire to accept the source
     ImVector<unsigned char> DragDropPayloadBufHeap;             // We don't expose the ImVector<> directly
-    unsigned char           DragDropPayloadBufLocal[8];         // Local buffer for small payloads
+    unsigned char           DragDropPayloadBufLocal[16];        // Local buffer for small payloads
 
     // Tab bars
     ImGuiTabBar*                    CurrentTabBar;