mirror of
https://github.com/Drezil/imgui.git
synced 2025-09-15 07:33:14 +02:00
Backends: Silence overzealous warnings. (#4834) Add comments about SetDragDropPayload() return value. (#4835)
This commit is contained in:
@ -10622,6 +10622,7 @@ bool ImGui::SetDragDropPayload(const char* type, const void* data, size_t data_s
|
||||
}
|
||||
payload.DataFrameCount = g.FrameCount;
|
||||
|
||||
// Return whether the payload has been accepted
|
||||
return (g.DragDropAcceptFrameCount == g.FrameCount) || (g.DragDropAcceptFrameCount == g.FrameCount - 1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user