1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Now limiting the number of characters of a channel's (short) name to 16 in the schedules menus

This commit is contained in:
Klaus Schmidinger 2012-04-06 12:35:39 +02:00
parent d5aa5f7294
commit 4e8dedb7ad
2 changed files with 7 additions and 3 deletions

View File

@ -7052,10 +7052,13 @@ Video Disk Recorder Revision History
- Fixed handling IDLEPRIORITY in cDvbDevice::ProvidesChannel() (thanks to Frank - Fixed handling IDLEPRIORITY in cDvbDevice::ProvidesChannel() (thanks to Frank
Schmirler). Schmirler).
2012-04-04: Version 1.7.28 2012-04-06: Version 1.7.28
- Fixed cPixmapMemory::DrawEllipse() for quadrants -1 and -4. - Fixed cPixmapMemory::DrawEllipse() for quadrants -1 and -4.
- Fixed getting the maximum short channel name length in case there are no short names - Fixed getting the maximum short channel name length in case there are no short names
at all (reported by Derek Kelly). at all (reported by Derek Kelly).
- The new function cDevice::DeviceType() returns a string identifying the type of - The new function cDevice::DeviceType() returns a string identifying the type of
the given device. the given device.
- Now limiting the number of characters of a channel's (short) name to 16 in the
schedules menus, to keep that column from getting overly wide in case there is
a channel with a very long name that has no short name.

5
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 2.45 2012/03/13 13:14:38 kls Exp $ * $Id: menu.c 2.46 2012/04/06 12:33:40 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -47,9 +47,10 @@
#define CAMRESPONSETIMEOUT 5 // seconds to wait for a response from a CAM #define CAMRESPONSETIMEOUT 5 // seconds to wait for a response from a CAM
#define MINFREEDISK 300 // minimum free disk space (in MB) required to start recording #define MINFREEDISK 300 // minimum free disk space (in MB) required to start recording
#define NODISKSPACEDELTA 300 // seconds between "Not enough disk space to start recording!" messages #define NODISKSPACEDELTA 300 // seconds between "Not enough disk space to start recording!" messages
#define MAXCHNAMWIDTH 16 // maximum number of characters of channels' short names shown in schedules menus
#define CHNUMWIDTH (numdigits(Channels.MaxNumber()) + 1) #define CHNUMWIDTH (numdigits(Channels.MaxNumber()) + 1)
#define CHNAMWIDTH (Channels.MaxShortChannelNameLength() + 1) #define CHNAMWIDTH (min(MAXCHNAMWIDTH, Channels.MaxShortChannelNameLength() + 1))
// --- cFreeDiskSpace -------------------------------------------------------- // --- cFreeDiskSpace --------------------------------------------------------