diff options
author | harbaum <harbaum@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-08-09 17:25:34 +0000 |
---|---|---|
committer | harbaum <harbaum@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-08-09 17:25:34 +0000 |
commit | ccf39796a1c59b0dec4b030a5791b71246e77e64 (patch) | |
tree | ee6be5361bbd51f23b16a0b932b3573366228b66 /drv_LEDMatrix.c | |
parent | a36ad95b8536da26e94846f9b7996b3ec09c8d13 (diff) | |
download | lcd4linux-ccf39796a1c59b0dec4b030a5791b71246e77e64.tar.gz |
[lcd4linux @ 2006-08-09 17:25:34 by harbaum]
Better bar color support and new bold font
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@685 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_LEDMatrix.c')
-rw-r--r-- | drv_LEDMatrix.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drv_LEDMatrix.c b/drv_LEDMatrix.c index bf4757d..7bd453d 100644 --- a/drv_LEDMatrix.c +++ b/drv_LEDMatrix.c @@ -1,4 +1,4 @@ -/* $Id: drv_LEDMatrix.c,v 1.2 2006/08/08 20:16:28 harbaum Exp $ +/* $Id: drv_LEDMatrix.c,v 1.3 2006/08/09 17:25:34 harbaum Exp $ * * LED matrix driver for LCD4Linux * (see http://www.harbaum.org/till/ledmatrix for hardware) @@ -23,6 +23,9 @@ * * * $Log: drv_LEDMatrix.c,v $ + * Revision 1.3 2006/08/09 17:25:34 harbaum + * Better bar color support and new bold font + * * Revision 1.2 2006/08/08 20:16:28 harbaum * Added "extracolor" (used for e.g. bar border) and RGB support for LEDMATRIX * @@ -128,6 +131,7 @@ static int drv_LEDMatrix_start(const char *section) struct sockaddr_in cli_addr; struct hostent *hp; int val; + char *attr; IPAddress = cfg_get(section, "IPAddress", NULL); if (IPAddress == NULL || *IPAddress == '\0') { @@ -153,6 +157,11 @@ static int drv_LEDMatrix_start(const char *section) } free(s); + s = cfg_get(section, "fontstyle", NULL); + if (s != NULL) { + if(strstr(s, "bold") != NULL) FONT_STYLE |= FONT_STYLE_BOLD; + } + /* contact display */ info("%s: contacting %s", Name, IPAddress); |