From 3ea4dee7fddd7a04f663da5884596501c434a771 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 15 Jul 2015 07:30:48 +0200 Subject: 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 --- include/gui/graphic_utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/gui') 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 #include +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); -- cgit v1.2.3