mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00: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:
parent
a7de2953f5
commit
4d03634e5d
2 changed files with 36 additions and 9 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue