From b6080634cc57b02f53d427deb45a2dcc297c94be Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Thu, 22 Dec 2016 12:53:09 +0100 Subject: Added cFont::Width(void) to get the default character width and allow stretched font drawing in high level OSDs --- PLUGINS/src/skincurses/HISTORY | 5 +++++ PLUGINS/src/skincurses/skincurses.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'PLUGINS') diff --git a/PLUGINS/src/skincurses/HISTORY b/PLUGINS/src/skincurses/HISTORY index f24e6766..d4673f26 100644 --- a/PLUGINS/src/skincurses/HISTORY +++ b/PLUGINS/src/skincurses/HISTORY @@ -130,3 +130,8 @@ VDR Plugin 'skincurses' Revision History 2015-02-19: Version 2.2.0 - Official release. + +2016-12-22: Version 2.3.2 + +- Added cFont::Width(void) to get the default character width and allow stretched + font drawing in high level OSDs (dummy for skincurses). 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 @@ -12,7 +12,7 @@ #include #include -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; } -- cgit v1.2.3