diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-07-15 07:30:48 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-07-16 09:13:04 +0200 |
commit | 3ea4dee7fddd7a04f663da5884596501c434a771 (patch) | |
tree | 503046b9d571a8467d6f0d7df363d0ca18a605d3 /include/gui | |
parent | 976ad2aea264c0af632d1429e16ca9a03cc55bbe (diff) | |
download | barebox-3ea4dee7fddd7a04f663da5884596501c434a771.tar.gz barebox-3ea4dee7fddd7a04f663da5884596501c434a771.tar.xz |
graphics_utils: Export get_pixel
get_pixel converts a 32bit trgb color into framebuffer format. This
is useful for other code aswell, so export it.
Other functions in the graphics utils code use the name get/set_pixel
aswell, but instead of converting data they get a pixel from the framebuffer
or set a pixel on the framebuffer. To separate from these rename the
function to gu_hex_to_pixel.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/gui')
-rw-r--r-- | include/gui/graphic_utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gui/graphic_utils.h b/include/gui/graphic_utils.h index 5c5c40a67d..136cac1f3e 100644 --- a/include/gui/graphic_utils.h +++ b/include/gui/graphic_utils.h @@ -11,6 +11,7 @@ #include <gui/image.h> #include <gui/gui.h> +u32 gu_hex_to_pixel(struct fb_info *info, u32 color); void gu_rgba_blend(struct fb_info *info, struct image *img, void* dest, int height, int width, int startx, int starty, bool is_rgba); void gu_set_pixel(struct fb_info *info, void *adr, u32 px); |