ui/requester: fix visible row count

The mistaken logic would cause the requester to sometimes display one
extra row, depending on the API usage.
This commit is contained in:
Marcin Kurczewski 2025-04-19 09:05:52 +02:00
parent 009c0b003c
commit 83bee31c0c

View file

@ -102,7 +102,7 @@ int32_t UI_Requester_GetCurrentRow(const UI_REQUESTER_STATE *s)
bool UI_Requester_IsRowVisible( bool UI_Requester_IsRowVisible(
const UI_REQUESTER_STATE *const s, const int32_t i) const UI_REQUESTER_STATE *const s, const int32_t i)
{ {
return i >= UI_Requester_GetFirstRow(s) && i <= UI_Requester_GetLastRow(s); return i >= UI_Requester_GetFirstRow(s) && i < UI_Requester_GetLastRow(s);
} }
bool UI_Requester_IsRowSelected( bool UI_Requester_IsRowSelected(