Solve the segmentation fault in MtxOrb.c

If framebuf is not alocated when init is called then we do.
A lot of warning are removed because MtxOrb.h is cleaned.
For the futur, double buffering is already prepared.
I also have done some cleaning of unused function related to hbar/vbar.
BigNum are still not working nicely but I am working on it.
I don't have flickering on my screen so I cannot fix that problem!
This commit is contained in:
dglaude
2001-11-19 18:35:39 +00:00
parent 092b89dcdf
commit ca27bcac18
2 changed files with 55 additions and 21 deletions
+3 -3
View File
@@ -4,6 +4,8 @@
extern lcd_logical_driver *MtxOrb;
int MtxOrb_init (lcd_logical_driver * driver, char *device);
/*
* Just like in hd44780 those function are assing by _init ...
static void MtxOrb_clear ();
static void MtxOrb_close ();
static void MtxOrb_flush ();
@@ -27,9 +29,7 @@ static void MtxOrb_heartbeat (int type);
static int MtxOrb_ask_bar (int type);
static void MtxOrb_set_known_char (int car, int type);
// Isn't this function supposed to go away?
static void MtxOrb_init_all (int type);
*/
#define DEFAULT_CONTRAST 120
#define DEFAULT_DEVICE "/dev/lcd"