mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
When entering time values the digits that still have to be entered are now shown as '-'
This commit is contained in:
parent
80d491ec45
commit
dd3c8591cd
2
HISTORY
2
HISTORY
@ -591,3 +591,5 @@ Video Disk Recorder Revision History
|
||||
- Fixed jumping to an editing mark when replay has been paused.
|
||||
- Avoiding unnecessary code execution in the replay progress display (thanks
|
||||
to Guido Fiala).
|
||||
- When entering time values the digits that still have to be entered are now
|
||||
shown as '-' (as in "1-:--").
|
||||
|
9
menu.c
9
menu.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: menu.c 1.85 2001/07/28 13:07:30 kls Exp $
|
||||
* $Id: menu.c 1.86 2001/07/28 13:44:48 kls Exp $
|
||||
*/
|
||||
|
||||
#include "menu.h"
|
||||
@ -277,7 +277,12 @@ cMenuEditTimeItem::cMenuEditTimeItem(const char *Name, int *Value)
|
||||
void cMenuEditTimeItem::Set(void)
|
||||
{
|
||||
char buf[10];
|
||||
snprintf(buf, sizeof(buf), "%02d:%02d", hh, mm);
|
||||
switch (pos) {
|
||||
case 1: snprintf(buf, sizeof(buf), "%01d-:--", hh / 10); break;
|
||||
case 2: snprintf(buf, sizeof(buf), "%02d:--", hh); break;
|
||||
case 3: snprintf(buf, sizeof(buf), "%02d:%01d-", hh, mm / 10); break;
|
||||
default: snprintf(buf, sizeof(buf), "%02d:%02d", hh, mm);
|
||||
}
|
||||
SetValue(buf);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user