From 4d03634e5da40dc092b6e5b985f74aedfe04f81e Mon Sep 17 00:00:00 2001 From: Nikita Kiryanov Date: Mon, 8 Dec 2014 17:14:43 +0200 Subject: 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 Cc: Anatolij Gustschin Cc: Simon Glass Acked-by: Simon Glass --- include/lcd.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/lcd.h') diff --git a/include/lcd.h b/include/lcd.h index 01609ac09f..2235b9be1e 100644 --- a/include/lcd.h +++ b/include/lcd.h @@ -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 * -- cgit v1.2.3