add CFontz633_cellwidth() and CFontz633_cellheight() functions so that
CFontz633 and CFontzPacket return the correct cell dimensions to clients
This commit is contained in:
@@ -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...
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user