Patched lcd.c to work with older drivers that use 0 or (void *) -1

as valid function pointer values (now logs to syslog); fixed text
driver, curses driver, and CFontz driver to work correctly in new
environment.
This commit is contained in:
ddouthitt
2001-09-25 00:13:57 +00:00
parent 1be66aa0b9
commit 4b24b2e6f1
5 changed files with 124 additions and 26 deletions
-6
View File
@@ -37,8 +37,6 @@
#define DEFAULT_AUTOSCROLL 1
#define DEFAULT_CURSORBLINK 0
#define GENERIC (void *) -1
#define IS_LCD_DISPLAY (MtxOrb_type == MTXORB_LCD)
#define IS_LKD_DISPLAY (MtxOrb_type == MTXORB_LKD)
#define IS_VFD_DISPLAY (MtxOrb_type == MTXORB_VFD)
@@ -367,10 +365,6 @@ MtxOrb_init (lcd_logical_driver * driver, char *args)
// forget bar caracter not in use anymore and reuse the
// slot for another bar caracter.
//
// Why not just use Matrix Orbital's "clear screen" function or output a "^L"?
// This reliance on drv_base_clear seems suspicious... especially as
// using a (void *) -1 in the driver structure does the same thing...
//
static void
MtxOrb_clear ()
{