fix highlighting and change search mode a bit

This commit is contained in:
unK
2008-08-29 01:39:03 +02:00
parent 8d8dadd2b1
commit f2bb625331
6 changed files with 52 additions and 30 deletions

View File

@@ -489,13 +489,11 @@ void Menu::Highlight(int which)
else
return;
if (which >= itsHeight/2)
if (which >= itsHeight/2 && itsOptions.size() > itsHeight)
{
itsBeginning = itsHighlight-itsHeight/2;
if (itsBeginning > itsOptions.size()-itsHeight)
itsBeginning = itsOptions.size()-itsHeight;
if (itsBeginning < 0)
itsBeginning = 0;
}
else
itsBeginning = 0;