Added width and height functions (I forgot them at the v0.5 kick-off).

This commit is contained in:
robijn
2002-02-10 14:22:17 +00:00
parent 2be3a1cfdb
commit 152f8b4aff
+20
View File
@@ -139,6 +139,8 @@ t6963_init (Driver *drvthis, char *args)
drvthis->supports_multiple = &supports_multiple;
// Set the functions the driver supports
drvthis->width = t6963_width;
drvthis->height = t6963_height;
drvthis->clear = t6963_clear;
drvthis->string = t6963_string;
drvthis->chr = t6963_chr;
@@ -211,6 +213,24 @@ t6963_close (Driver *drvthis)
t6963_display_buffer2 = NULL;
}
/////////////////////////////////////////////////////////////////
// Returns the display width
//
MODULE_EXPORT int
t6963_width (Driver *drvthis)
{
return width;
}
/////////////////////////////////////////////////////////////////
// Returns the display height
//
MODULE_EXPORT int
t6963_height (Driver *drvthis)
{
return height;
}
/////////////////////////////////////////////////////////////////
// Clears the LCD screen
//