mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 20:58:07 +03:00
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:
parent
009c0b003c
commit
83bee31c0c
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue