Procházet zdrojové kódy

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

omar před 5 roky
rodič
revize
ca30ef4269
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)
     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
     int                     DragDropAcceptFrameCount;           // Last time a target expressed a desire to accept the source
     ImVector<unsigned char> DragDropPayloadBufHeap;             // We don't expose the ImVector<> directly
     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
     // Tab bars
     ImGuiTabBar*                    CurrentTabBar;
     ImGuiTabBar*                    CurrentTabBar;