diff options
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | recmenu.c | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -50,3 +50,5 @@ Version 0.1.5 Version 0.1.6 +- fixed bug that menuitem number is not calculated correctly + if recording menu scrolls @@ -150,7 +150,7 @@ void cRecMenu::AddFooter(cRecMenuItem *footer) { int cRecMenu::GetNumActive(void) {
int num = 0;
- for (cRecMenuItem *current = start; current; current = menuItems.Next(current)) {
+ for (cRecMenuItem *current = menuItems.First(); current; current = menuItems.Next(current)) {
if (current == active)
return num;
num++;
@@ -504,4 +504,4 @@ void cRecMenu::DrawFooter(void) { active = footer;
recMenuGrid->SetCurrent(footer->Id(), true);
}
-}
\ No newline at end of file +}
|