summaryrefslogtreecommitdiff
path: root/skins.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-03-11 14:44:49 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-03-11 14:44:49 +0100
commitea16f6477342d49e19b20a5af233d354496e720b (patch)
tree0eb5228ce3d74ec84eb3544171e929588b0add88 /skins.c
parent7958688ae120e776ce35c67d9f9c1115c7fa9410 (diff)
downloadvdr-ea16f6477342d49e19b20a5af233d354496e720b.tar.gz
vdr-ea16f6477342d49e19b20a5af233d354496e720b.tar.bz2
Adapted menu column widths of 'skincurses' to the wider HD OSD sizes
Diffstat (limited to 'skins.c')
-rw-r--r--skins.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/skins.c b/skins.c
index ccf8c099..b9c55ef4 100644
--- a/skins.c
+++ b/skins.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skins.c 2.4 2012/02/20 11:47:15 kls Exp $
+ * $Id: skins.c 2.5 2012/03/11 14:36:11 kls Exp $
*/
#include "skins.h"
@@ -78,9 +78,8 @@ void cSkinDisplayMenu::SetTabs(int Tab1, int Tab2, int Tab3, int Tab4, int Tab5)
tabs[3] = Tab3 ? tabs[2] + Tab3 : 0;
tabs[4] = Tab4 ? tabs[3] + Tab4 : 0;
tabs[5] = Tab5 ? tabs[4] + Tab5 : 0;
- int AvgCharWidth = Setup.FontOsdSize * 4 / 6; // just an estimate
for (int i = 1; i < MaxTabs; i++)
- tabs[i] *= AvgCharWidth;
+ tabs[i] *= AvgCharWidth();
}
void cSkinDisplayMenu::Scroll(bool Up, bool Page)