summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-09-26 11:59:01 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-04 17:22:09 +0200
commit21a8ef55b0a2140a7ef7bd38869ff63592335861 (patch)
treebba74975da065345a5e0318189a41bbabb4d5cee /include
parentda0d61770a1eaebf90f92d432cde7f6e602da7da (diff)
downloadbarebox-21a8ef55b0a2140a7ef7bd38869ff63592335861.tar.gz
barebox-21a8ef55b0a2140a7ef7bd38869ff63592335861.tar.xz
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 <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/gui/graphic_utils.h5
1 files changed, 4 insertions, 1 deletions
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 <fb.h>
+#include <gui/image.h>
+
+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);