add CFontz633_cellwidth() and CFontz633_cellheight() functions so that

CFontz633 and CFontzPacket return the correct cell dimensions to clients
This commit is contained in:
marschap
2005-06-04 12:40:17 +00:00
parent 09937f0edd
commit 8cd909baf9
3 changed files with 55 additions and 5 deletions
+26 -2
View File
@@ -330,7 +330,7 @@ CFontz633_close (Driver *drvthis)
/*
* Returns the display width
* Returns the display width in characters
*/
MODULE_EXPORT int
CFontz633_width (Driver *drvthis)
@@ -342,7 +342,7 @@ CFontz633_width (Driver *drvthis)
/*
* Returns the display height
* Returns the display height in characters
*/
MODULE_EXPORT int
CFontz633_height (Driver *drvthis)
@@ -353,6 +353,30 @@ CFontz633_height (Driver *drvthis)
}
/*
* Returns the width of a character in pixels
*/
MODULE_EXPORT int
CFontz633_cellwidth (Driver *drvthis)
{
PrivateData *p = drvthis->private_data;
return p->cellwidth;
}
/*
* Returns the height of a character in pixels
*/
MODULE_EXPORT int
CFontz633_cellheight (Driver *drvthis)
{
PrivateData *p = drvthis->private_data;
return p->cellheight;
}
/*
* Flushes all output to the lcd...
*/