No longer displaying the year in the 'Recordings' menu

This commit is contained in:
Klaus Schmidinger 2000-10-03 11:39:04 +02:00
parent c31b033c21
commit e4f7e025e5
3 changed files with 7 additions and 6 deletions

View File

@ -204,7 +204,7 @@ Video Disk Recorder Revision History
is no stdin in daemon mode, so KBD makes no sense - plus it sometimes is no stdin in daemon mode, so KBD makes no sense - plus it sometimes
crashed). crashed).
2000-10-01: Version 0.65 2000-10-03: Version 0.65
- Modified LIRC interface to better handle repeat function (by Carsten Koch). - Modified LIRC interface to better handle repeat function (by Carsten Koch).
- Faster OSD by first writing into a bitmap and then sending the entire bitmap - Faster OSD by first writing into a bitmap and then sending the entire bitmap
@ -212,3 +212,5 @@ Video Disk Recorder Revision History
against the version 0.71 DVB driver file 'dvb.c'). against the version 0.71 DVB driver file 'dvb.c').
- When switching channels the channel is now immediately displayed, and the - When switching channels the channel is now immediately displayed, and the
current/next information is shown as soon as it becomes available. current/next information is shown as soon as it becomes available.
- No longer displaying the year in the 'Recordings' menu to save space for the
title (by Carsten Koch).

4
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menu.c 1.27 2000/09/11 21:13:46 kls Exp $ * $Id: menu.c 1.28 2000/10/03 11:32:41 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -1002,7 +1002,7 @@ public:
}; };
cMenuRecordings::cMenuRecordings(void) cMenuRecordings::cMenuRecordings(void)
:cOsdMenu("Recordings", 9, 6) :cOsdMenu("Recordings", 6, 6)
{ {
if (Recordings.Load()) { if (Recordings.Load()) {
cRecording *recording = Recordings.First(); cRecording *recording = Recordings.First();

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: recording.c 1.16 2000/10/03 10:33:40 kls Exp $ * $Id: recording.c 1.17 2000/10/03 11:32:03 kls Exp $
*/ */
#define _GNU_SOURCE #define _GNU_SOURCE
@ -175,10 +175,9 @@ const char *cRecording::Title(char Delimiter)
delete titleBuffer; delete titleBuffer;
titleBuffer = NULL; titleBuffer = NULL;
struct tm *t = localtime(&start); struct tm *t = localtime(&start);
asprintf(&titleBuffer, "%02d.%02d.%02d%c%02d:%02d%c%s", asprintf(&titleBuffer, "%02d.%02d%c%02d:%02d%c%s",
t->tm_mday, t->tm_mday,
t->tm_mon + 1, t->tm_mon + 1,
t->tm_year % 100,
Delimiter, Delimiter,
t->tm_hour, t->tm_hour,
t->tm_min, t->tm_min,