mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-12-27 07:11:05 +01:00
Fixed setting the initial offset of the cursor in a list menu
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: osdbase.c 4.4 2018/03/06 10:38:18 kls Exp $
|
||||
* $Id: osdbase.c 4.5 2018/03/24 11:47:45 kls Exp $
|
||||
*/
|
||||
|
||||
#include "osdbase.h"
|
||||
@@ -330,7 +330,8 @@ void cOsdMenu::Clear(void)
|
||||
{
|
||||
if (marked >= 0)
|
||||
SetStatus(NULL);
|
||||
lastOffset = (current > first) ? current - first : 0;
|
||||
if (current >= 0)
|
||||
lastOffset = (current > first) ? current - first : 0;
|
||||
first = 0;
|
||||
current = marked = -1;
|
||||
cList<cOsdItem>::Clear();
|
||||
|
||||
Reference in New Issue
Block a user