summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-07-28 13:48:52 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-07-28 13:48:52 +0200
commitdd3c8591cd8099d7ea83ed0f1d01864d63d0421f (patch)
tree6db0b184e8b75fa08e484d08ace3110825cd0106
parent80d491ec45874374cd3ae11ba6fb6259a85716be (diff)
downloadvdr-dd3c8591cd8099d7ea83ed0f1d01864d63d0421f.tar.gz
vdr-dd3c8591cd8099d7ea83ed0f1d01864d63d0421f.tar.bz2
When entering time values the digits that still have to be entered are now shown as '-'
-rw-r--r--HISTORY2
-rw-r--r--menu.c9
2 files changed, 9 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index cd5ef73b..23b4a004 100644
--- a/HISTORY
+++ b/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-:--").
diff --git a/menu.c b/menu.c
index b6819238..ba681ee4 100644
--- a/menu.c
+++ b/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);
}