summaryrefslogtreecommitdiffstats
path: root/include/gui
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2016-06-27 21:27:56 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2016-06-30 08:33:53 +0200
commit0cd1a5192400ee4b700d33418f08d6eb7fe4dfdf (patch)
tree262e1f14debc7d99fded70f5fee0db1bd53b0c72 /include/gui
parentd7fc1c18e785277f24a69e2aaa1a2c6e80e2b0cf (diff)
downloadbarebox-0cd1a5192400ee4b700d33418f08d6eb7fe4dfdf.tar.gz
barebox-0cd1a5192400ee4b700d33418f08d6eb7fe4dfdf.tar.xz
GUI: Add a function to draw vertical/horizontal bars
Add a function to draw solid vertical or horizontal bars. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/graphic_utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gui/graphic_utils.h b/include/gui/graphic_utils.h
index 231b3a9414..279fdf91d3 100644
--- a/include/gui/graphic_utils.h
+++ b/include/gui/graphic_utils.h
@@ -28,4 +28,7 @@ void gu_invert_area(struct fb_info *info, void *buf, int startx, int starty, int
void gu_screen_blit_area(struct screen *sc, int startx, int starty, int width,
int height);
+void gu_fill_rectangle(struct screen *sc,
+ int x1, int y1, int x2, int y2,
+ u8 r, u8 g, u8 b, u8 a);
#endif /* __GRAPHIC_UTILS_H__ */