Backends: Silence overzealous warnings. (#4834) Add comments about SetDragDropPayload() return value. (#4835)

This commit is contained in:
ocornut
2021-12-29 12:41:34 +01:00
parent 89a28209e8
commit dbeea7220f
4 changed files with 37 additions and 13 deletions

View File

@ -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);
}