From 21a8ef55b0a2140a7ef7bd38869ff63592335861 Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Wed, 26 Sep 2012 11:59:01 +0200 Subject: graphic_utils: pass image so we can draw only the visible part of the image This is needed if the image is bigger than the screen. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Sascha Hauer --- include/gui/graphic_utils.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/gui') diff --git a/include/gui/graphic_utils.h b/include/gui/graphic_utils.h index 9909b6c873..4690e51e62 100644 --- a/include/gui/graphic_utils.h +++ b/include/gui/graphic_utils.h @@ -7,7 +7,10 @@ #ifndef __GRAPHIC_UTILS_H__ #define __GRAPHIC_UTILS_H__ -void rgba_blend(struct fb_info *info, void *image, void* dest, int height, +#include +#include + +void rgba_blend(struct fb_info *info, struct image *img, void* dest, int height, int width, int startx, int starty, bool is_rgba); void set_pixel(struct fb_info *info, void *adr, u32 px); void set_rgb_pixel(struct fb_info *info, void *adr, u8 r, u8 g, u8 b); -- cgit v1.2.3