mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
lcd: introduce getters for bg/fg color
Introduce lcd_getbgcolor() and lcd_getfgcolor(), and use them where applicable. This is a preparatory step for extracting lcd console code into its own file. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Cc: Anatolij Gustschin <agust@denx.de> Cc: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:

committed by
Anatolij Gustschin

parent
a7de2953f5
commit
4d03634e5d
@ -290,6 +290,20 @@ int lcd_get_screen_rows(void);
|
||||
*/
|
||||
int lcd_get_screen_columns(void);
|
||||
|
||||
/**
|
||||
* Get the background color of the LCD
|
||||
*
|
||||
* @return background color value
|
||||
*/
|
||||
int lcd_getbgcolor(void);
|
||||
|
||||
/**
|
||||
* Get the foreground color of the LCD
|
||||
*
|
||||
* @return foreground color value
|
||||
*/
|
||||
int lcd_getfgcolor(void);
|
||||
|
||||
/**
|
||||
* Set the position of the text cursor
|
||||
*
|
||||
|
Reference in New Issue
Block a user