mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 18:41:36 +08:00
Hack for font background when we cannot read from the LCD; Candidate fix for ILI9325 LCD
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4763 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -151,6 +151,36 @@ namespace NXWidgets
|
||||
|
||||
const nxgl_coord_t getY(void) const;
|
||||
|
||||
/**
|
||||
* Get the background color that will be used to fill in the spaces
|
||||
* when rendering fonts. This background color is ONLY used if the
|
||||
* LCD device does not support reading GRAM contents.
|
||||
*
|
||||
* @return. The current background color being used.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_NX_WRITEONLY
|
||||
nxgl_mxpixel_t getBackColor(void) const
|
||||
{
|
||||
return m_backColor;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Set the background color that will be used to fill in the spaces
|
||||
* when rendering fonts. This background color is ONLY used if the
|
||||
* LCD device does not support reading GRAM contents.
|
||||
*
|
||||
* @return. The current background color being used.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_NX_WRITEONLY
|
||||
void setBackColor(nxgl_mxpixel_t backColor)
|
||||
{
|
||||
m_backColor = backColor;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Draw a pixel into the window.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user