diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-09-12 15:42:44 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-09-12 17:22:47 +0200 |
commit | 2dbdd40d57887360b4e857cc4fe7861b091db18b (patch) | |
tree | 4545d834f845f287a3bff82e550e3596974dcae4 /commands/splash.c | |
parent | 2dfb4028b4eb4843a3dfcf87fd9608ac04bbf622 (diff) | |
download | barebox-2dbdd40d57887360b4e857cc4fe7861b091db18b.tar.gz barebox-2dbdd40d57887360b4e857cc4fe7861b091db18b.tar.xz |
splash/bmp: switch to image_renderer
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/splash.c')
-rw-r--r-- | commands/splash.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/commands/splash.c b/commands/splash.c index ad737784e0..88a6cf1947 100644 --- a/commands/splash.c +++ b/commands/splash.c @@ -7,7 +7,7 @@ #include <getopt.h> #include <fcntl.h> #include <fb.h> -#include <bmp_layout.h> +#include <image_renderer.h> static int do_splash(int argc, char *argv[]) { @@ -15,7 +15,7 @@ static int do_splash(int argc, char *argv[]) char *fbdev = "/dev/fb0"; void *fb; struct fb_info info; - char *bmpfile; + char *image_file; int startx = -1, starty = -1; int xres, yres; int offscreen = 0; @@ -40,7 +40,7 @@ static int do_splash(int argc, char *argv[]) printf("no filename given\n"); return 1; } - bmpfile = argv[optind]; + image_file = argv[optind]; fd = open(fbdev, O_RDWR); if (fd < 0) { @@ -75,8 +75,8 @@ static int do_splash(int argc, char *argv[]) memcpy(offscreenbuf, fb, fbsize); } - if (bmp_render_file(&info, bmpfile, fb, startx, starty, xres, yres, - offscreenbuf) < 0) + if (image_renderer_file(&info, image_file, fb, startx, starty, + offscreenbuf) < 0) ret = 1; if (offscreenbuf) |