summaryrefslogtreecommitdiffstats
path: root/lib/gui/png.c
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 /lib/gui/png.c
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 'lib/gui/png.c')
-rw-r--r--lib/gui/png.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gui/png.c b/lib/gui/png.c
index 5d77c8ce56..1e9efd529d 100644
--- a/lib/gui/png.c
+++ b/lib/gui/png.c
@@ -63,7 +63,7 @@ static int png_renderer(struct fb_info *info, struct image *img, void* fb,
buf = offscreenbuf ? offscreenbuf : fb;
- rgba_blend(info, img->data, buf, height, width, startx, starty, true);
+ rgba_blend(info, img, buf, height, width, startx, starty, true);
if (offscreenbuf) {
int fbsize;