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:
@@ -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 ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user