summaryrefslogtreecommitdiff
path: root/osdbase.c
diff options
context:
space:
mode:
Diffstat (limited to 'osdbase.c')
-rw-r--r--osdbase.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/osdbase.c b/osdbase.c
index dea1d995..1720022d 100644
--- a/osdbase.c
+++ b/osdbase.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osdbase.c 4.3 2017/11/07 15:42:47 kls Exp $
+ * $Id: osdbase.c 4.4 2018/03/06 10:38:18 kls Exp $
*/
#include "osdbase.h"
@@ -92,7 +92,7 @@ cOsdMenu::cOsdMenu(const char *Title, int c0, int c1, int c2, int c3, int c4)
SetTitle(Title);
SetCols(c0, c1, c2, c3, c4);
first = 0;
- lastOffset = 0;
+ lastOffset = -1;
current = marked = -1;
subMenu = NULL;
helpRed = helpGreen = helpYellow = helpBlue = NULL;
@@ -282,9 +282,9 @@ void cOsdMenu::Display(void)
void cOsdMenu::SetCurrent(cOsdItem *Item)
{
current = Item ? Item->Index() : -1;
- if (current >= 0 && lastOffset > 0)
+ if (current >= 0 && lastOffset >= 0)
first = max(0, current - lastOffset);
- lastOffset = 0;
+ lastOffset = -1;
}
void cOsdMenu::RefreshCurrent(void)