Updated lcd.c:
* Added preliminary support for a Toshiba T6963 driver. * Fixed a bug in the driver_list function which caused some unpretty output...
This commit is contained in:
+11
-2
@@ -111,6 +111,10 @@ static char *lcd_drv_getinfo ();
|
|||||||
#include "svgalib_drv.h"
|
#include "svgalib_drv.h"
|
||||||
// -- #endif
|
// -- #endif
|
||||||
|
|
||||||
|
// -- #ifdef T6963_DRV
|
||||||
|
#include "t6963.h"
|
||||||
|
// -- #endif
|
||||||
|
|
||||||
// Make program more readable and understandable;
|
// Make program more readable and understandable;
|
||||||
// hide details...
|
// hide details...
|
||||||
//#define ResetList(a) LL_Rewind(a)
|
//#define ResetList(a) LL_Rewind(a)
|
||||||
@@ -180,6 +184,9 @@ lcd_physical_driver drivers[] = {
|
|||||||
// -- #ifdef SVGALIB_DRV
|
// -- #ifdef SVGALIB_DRV
|
||||||
{"svgalib", svgalib_drv_init,},
|
{"svgalib", svgalib_drv_init,},
|
||||||
// -- #endif
|
// -- #endif
|
||||||
|
// -- #ifdef T6963_DRV
|
||||||
|
{"t6963", t6963_init,},
|
||||||
|
// -- #endif
|
||||||
|
|
||||||
{NULL, NULL,},
|
{NULL, NULL,},
|
||||||
|
|
||||||
@@ -199,12 +206,14 @@ lcd_list_drivers (void) {
|
|||||||
printf("%s", CurrentDriver);
|
printf("%s", CurrentDriver);
|
||||||
|
|
||||||
if (NextDriver != NULL)
|
if (NextDriver != NULL)
|
||||||
printf(",");
|
printf(", ");
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
if ((i % 8) == 0)
|
if ((i % 8) == 0)
|
||||||
printf("\n");
|
printf("\n\t");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user