Add the glcd2usb connection type to the glcd driver.

This commit is contained in:
mmdolze
2011-11-27 10:36:50 +00:00
parent b54ffe59b5
commit 09251fee8c
8 changed files with 579 additions and 9 deletions
+4 -2
View File
@@ -59,6 +59,8 @@ glcd_render_init(Driver *drvthis)
p->cellwidth = GLCD_DEFAULT_CELLWIDTH;
p->cellheight = GLCD_DEFAULT_CELLHEIGHT;
debug(RPT_DEBUG, "%s: render_init()", drvthis->name);
#ifdef HAVE_FT2
int rc;
const char *tmp;
@@ -66,8 +68,6 @@ glcd_render_init(Driver *drvthis)
RenderConfig *rconf;
int w, h;
debug(RPT_INFO, "%s: render_init: Freetype", drvthis->name);
/* Allocate memory structures */
rconf = (RenderConfig *) calloc(1, sizeof(RenderConfig));
if (rconf == NULL) {
@@ -81,6 +81,8 @@ glcd_render_init(Driver *drvthis)
/* Only configure FreeType if enabled */
if (p->use_ft2) {
debug(RPT_INFO, "%s: render_init: Using FreeType", drvthis->name);
/* get font from config file */
tmp = drvthis->config_get_string(drvthis->name, "normal_font", 0, NULL);
if (tmp == NULL) {