mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 11:57:00 +00:00
This commit is contained in:
parent
666b93e989
commit
a134892a3d
@ -1829,7 +1829,7 @@ bool ImGui::BeginComboPreview()
|
|||||||
if (window->SkipItems || !(g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible))
|
if (window->SkipItems || !(g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible))
|
||||||
return false;
|
return false;
|
||||||
IM_ASSERT(g.LastItemData.Rect.Min.x == preview_data->PreviewRect.Min.x && g.LastItemData.Rect.Min.y == preview_data->PreviewRect.Min.y); // Didn't call after BeginCombo/EndCombo block or forgot to pass ImGuiComboFlags_CustomPreview flag?
|
IM_ASSERT(g.LastItemData.Rect.Min.x == preview_data->PreviewRect.Min.x && g.LastItemData.Rect.Min.y == preview_data->PreviewRect.Min.y); // Didn't call after BeginCombo/EndCombo block or forgot to pass ImGuiComboFlags_CustomPreview flag?
|
||||||
if (!window->ClipRect.Contains(preview_data->PreviewRect)) // Narrower test (optional)
|
if (!window->ClipRect.Overlaps(preview_data->PreviewRect)) // Narrower test (optional)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// FIXME: This could be contained in a PushWorkRect() api
|
// FIXME: This could be contained in a PushWorkRect() api
|
||||||
|
Loading…
Reference in New Issue
Block a user