Cfontz: Fix display of bars and output a warning on startup if driver was

not compiles with SEAMLESS_HBARS (hbars will not display correctly then). Also
update User's Guide.
This commit is contained in:
mmdolze
2011-11-07 20:26:17 +00:00
parent 5b82c82b25
commit 0bdbc5f0cd
4 changed files with 27 additions and 7 deletions
+7 -1
View File
@@ -243,6 +243,12 @@ CFontz_init(Driver *drvthis)
report(RPT_INFO, "%s: rebooting LCD...", drvthis->name);
CFontz_reboot(drvthis);
}
#ifndef SEAMLESS_HBARS
report(RPT_WARNING, "%s: driver built without SEAMLESS_HBARS. "
"Hbars will NOT display correctly!", drvthis->name);
#endif
sleep (1);
CFontz_hidecursor(drvthis);
CFontz_linewrap(drvthis, 1);
@@ -916,7 +922,7 @@ CFontz_icon(Driver *drvthis, int x, int y, int icon)
/* Yes we know, this is a VERY BAD implementation :-) */
switch (icon) {
case ICON_BLOCK_FILLED:
CFontz_raw_chr(drvthis, x, y, (p->newfirmware) ? 214 : 255);
CFontz_raw_chr(drvthis, x, y, (p->newfirmware) ? 0x1F : 255);
break;
case ICON_HEART_FILLED:
CFontz_set_char(drvthis, 0, heart_filled);