From b4d61b2271d14e5e73a54eddae16502d30e2825e Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 22 May 2012 23:49:15 +0000 Subject: Hack for font background when we cannot read from the LCD; Candidate fix for ILI9325 LCD git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4763 42af7a65-404d-4744-a932-0658087f49c3 --- NxWidgets/libnxwidgets/include/cgraphicsport.hxx | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'NxWidgets/libnxwidgets/include') diff --git a/NxWidgets/libnxwidgets/include/cgraphicsport.hxx b/NxWidgets/libnxwidgets/include/cgraphicsport.hxx index 8eea3d689..b9fbc4d41 100644 --- a/NxWidgets/libnxwidgets/include/cgraphicsport.hxx +++ b/NxWidgets/libnxwidgets/include/cgraphicsport.hxx @@ -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. * -- cgit v1.2.3