summaryrefslogtreecommitdiff
path: root/skins.h
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.h
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.h')
-rw-r--r--skins.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/skins.h b/skins.h
index 280a8e23..19bba513 100644
--- a/skins.h
+++ b/skins.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skins.h 2.1 2011/12/04 13:38:17 kls Exp $
+ * $Id: skins.h 2.2 2012/03/11 14:38:23 kls Exp $
*/
#ifndef __SKINS_H
@@ -28,6 +28,8 @@ private:
public:
cSkinDisplay(void);
virtual ~cSkinDisplay();
+ static int AvgCharWidth(void) { return Setup.FontOsdSize * 4 / 6; }
+ ///< Returns the average width of a character in pixel (just a raw estimate).
int EditableWidth(void) { return editableWidth; }
void SetEditableWidth(int Width) { editableWidth = Width; }
///< If an item is set through a call to cSkinDisplayMenu::SetItem(), this