summaryrefslogtreecommitdiff
path: root/PLUGINS/src/skincurses/skincurses.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-07-20 14:45:44 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-07-20 14:45:44 +0200
commit8ff2c73d9b4bf716e80b2c56e15badc2eb17427c (patch)
tree2c3df45d21344a662a856dab0a37484d4912a30c /PLUGINS/src/skincurses/skincurses.c
parentbd36fb5111d39f86f372829714bfdb06238f8809 (diff)
downloadvdr-8ff2c73d9b4bf716e80b2c56e15badc2eb17427c.tar.gz
vdr-8ff2c73d9b4bf716e80b2c56e15badc2eb17427c.tar.bz2
Fixed clearing color buttons in the 'curses' skin
Diffstat (limited to 'PLUGINS/src/skincurses/skincurses.c')
-rw-r--r--PLUGINS/src/skincurses/skincurses.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/PLUGINS/src/skincurses/skincurses.c b/PLUGINS/src/skincurses/skincurses.c
index fd20b4d4..9324210c 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 1.14 2007/06/23 09:08:01 kls Exp $
+ * $Id: skincurses.c 1.15 2007/07/20 14:45:07 kls Exp $
*/
#include <ncurses.h>
@@ -11,7 +11,7 @@
#include <vdr/plugin.h>
#include <vdr/skins.h>
-static const char *VERSION = "0.1.1";
+static const char *VERSION = "0.1.2";
static const char *DESCRIPTION = "A text only skin";
static const char *MAINMENUENTRY = NULL;
@@ -133,8 +133,6 @@ void cCursesOsd::RestoreRegion(void)
void cCursesOsd::DrawText(int x, int y, const char *s, tColor ColorFg, tColor ColorBg, const cFont *Font, int Width, int Height, int Alignment)
{
- if (!s)
- return;
int w = Font->Width(s);
int h = Font->Height();
if (Width || Height) {