mirror of
https://github.com/Drezil/imgui.git
synced 2025-01-05 14:06:35 +00:00
Build fix
This commit is contained in:
parent
787be01e61
commit
47d10944a5
@ -1645,7 +1645,7 @@ void ImGuiListClipper::End()
|
|||||||
if (ItemsCount < 0)
|
if (ItemsCount < 0)
|
||||||
return;
|
return;
|
||||||
// In theory here we should assert that ImGui::GetCursorPosY() == StartPosY + DisplayEnd * ItemsHeight, but it feels saner to just seek at the end and not assert/crash the user.
|
// In theory here we should assert that ImGui::GetCursorPosY() == StartPosY + DisplayEnd * ItemsHeight, but it feels saner to just seek at the end and not assert/crash the user.
|
||||||
if (ItemsCount < INT_MAX)
|
if (ItemsCount < IM_INT_MAX)
|
||||||
SetCursorPosYAndSetupDummyPrevLine(StartPosY + ItemsCount * ItemsHeight, ItemsHeight); // advance cursor
|
SetCursorPosYAndSetupDummyPrevLine(StartPosY + ItemsCount * ItemsHeight, ItemsHeight); // advance cursor
|
||||||
ItemsCount = -1;
|
ItemsCount = -1;
|
||||||
StepNo = 3;
|
StepNo = 3;
|
||||||
|
Loading…
Reference in New Issue
Block a user