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
+27 -3
View File
@@ -391,8 +391,8 @@ CFontz633_close (Driver *drvthis)
}
/* OK631
* Returns the display width
/*
* Returns the display width in characters
*/
MODULE_EXPORT int
CFontz633_width (Driver *drvthis)
@@ -404,7 +404,7 @@ CFontz633_width (Driver *drvthis)
/*
* Returns the display height
* Returns the display height in characters
*/
MODULE_EXPORT int
CFontz633_height (Driver *drvthis)
@@ -415,6 +415,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...
*/