I use a tList to display a list of data contained on a file. The user can select the file process it and then select a different file and repeate the processing procedure. The problem is that if the first list has an item longer then the corresponding item on the second list, it will be displayed over the item of the first list so I think may be an error in list.c
This is my code:
tList tSceneList;
void StoryListLoad(tList *pList)
{
int iCount=g_tStory.iSize, i;
pList->fdispTitle = 1;
pList->Title = g_tStory.strTitle;
pList->NbItems = iCount;
pList->LgMax = 0;
pList->XPos = 0;
pList->YPos = 0;
pList->XSize = 0;
pList->YSize = 0;
pList->NbDisp = 6;
pList->SelectedItem = 0;
pList->FirstDisplayItem = 0;
for(i=0; i<iCount; i++)
tSceneList.Items[i].Text = g_tStory.tScene[i].strTitle;
}
//------------------------------------------------------------------------------
StoryListLoad(&tSceneList);
LIST_Set(&tSceneList, 0, 0, 1);
LIST_Manager();