Unallocated framebuffer fix.

This commit is contained in:
robijn
2001-11-23 15:15:05 +00:00
parent 97457f45bd
commit efcbed6026
4 changed files with 82 additions and 56 deletions
+6
View File
@@ -175,6 +175,12 @@ CFontz_init (lcd_logical_driver * driver, char *args)
// Do it...
tcsetattr (fd, TCSANOW, &portset);
// Make sure the frame buffer is there...
if (!CFontz->framebuf)
CFontz->framebuf = (unsigned char *)
malloc (CFontz->wid * CFontz->hgt);
memset (CFontz->framebuf, ' ', CFontz->wid * CFontz->hgt);
// Set display-specific stuff..
if (reboot) {
CFontz_reboot ();