mirror of
https://github.com/raysan5/raygui.git
synced 2026-02-05 13:49:17 -05:00
Corrected issue
This commit is contained in:
@ -2866,7 +2866,7 @@ RAYGUIDEF bool GuiListViewEx(Rectangle bounds, const char **text, int *enabledEl
|
|||||||
bool pressed = false;
|
bool pressed = false;
|
||||||
|
|
||||||
int focusElement = -1;
|
int focusElement = -1;
|
||||||
int startIndex = (scrollIndex == NULL) ? 1 : *scrollIndex;
|
int startIndex = (scrollIndex == NULL) ? 0 : *scrollIndex;
|
||||||
bool useScrollBar = true;
|
bool useScrollBar = true;
|
||||||
bool pressedKey = false;
|
bool pressedKey = false;
|
||||||
|
|
||||||
@ -3093,9 +3093,10 @@ RAYGUIDEF bool GuiListViewEx(Rectangle bounds, const char **text, int *enabledEl
|
|||||||
}
|
}
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
|
||||||
*scrollIndex = startIndex;
|
if (scrollIndex != NULL) *scrollIndex = startIndex;
|
||||||
if (focus != NULL) *focus = focusElement;
|
if (focus != NULL) *focus = focusElement;
|
||||||
*active = auxActive;
|
*active = auxActive;
|
||||||
|
|
||||||
return pressed;
|
return pressed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user