diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2016-12-22 12:53:09 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2016-12-22 12:53:09 +0100 |
commit | b6080634cc57b02f53d427deb45a2dcc297c94be (patch) | |
tree | c9fd545d6212ac6814cf811f01d34a1da6f5e63f /PLUGINS/src/skincurses/skincurses.c | |
parent | f91468ff9bca7bbf07ff854909cd5564dbb59f23 (diff) | |
download | vdr-b6080634cc57b02f53d427deb45a2dcc297c94be.tar.gz vdr-b6080634cc57b02f53d427deb45a2dcc297c94be.tar.bz2 |
Added cFont::Width(void) to get the default character width and allow stretched font drawing in high level OSDs
Diffstat (limited to 'PLUGINS/src/skincurses/skincurses.c')
-rw-r--r-- | PLUGINS/src/skincurses/skincurses.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/PLUGINS/src/skincurses/skincurses.c b/PLUGINS/src/skincurses/skincurses.c index 2d92a574..2d98f5b9 100644 --- a/PLUGINS/src/skincurses/skincurses.c +++ b/PLUGINS/src/skincurses/skincurses.c @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: skincurses.c 3.3 2015/02/17 13:13:17 kls Exp $ + * $Id: skincurses.c 4.1 2016/12/22 12:50:20 kls Exp $ */ #include <ncurses.h> @@ -12,7 +12,7 @@ #include <vdr/skins.h> #include <vdr/videodir.h> -static const char *VERSION = "2.2.0"; +static const char *VERSION = "2.3.2"; static const char *DESCRIPTION = trNOOP("A text only skin"); static const char *MAINMENUENTRY = NULL; @@ -20,6 +20,7 @@ static const char *MAINMENUENTRY = NULL; class cCursesFont : public cFont { public: + virtual int Width(void) const { return 1; } virtual int Width(uint c) const { return 1; } virtual int Width(const char *s) const { return s ? Utf8StrLen(s) : 0; } virtual int Height(void) const { return 1; } |