4 * A simple program to demonstrate the use of the fbsplashrender library.
13 int main(int argc
, char **argv
)
15 struct fbspl_theme
*theme
;
18 fbsplash_lib_init(fbspl_bootup
);
19 fbsplash_acc_theme_set("test");
21 fbsplashr_init(false);
22 theme
= fbsplashr_theme_load();
24 fprintf(stderr
, "Failed to load theme.\n");
28 tty
= fbsplash_set_silent();
29 fbsplashr_tty_silent_init(true);
30 fbsplashr_tty_silent_update();
31 fbsplashr_render_screen(theme
, true, false, FBSPL_EFF_FADEIN
);
33 fbsplashr_render_screen(theme
, true, false, FBSPL_EFF_FADEOUT
);
34 fbsplashr_tty_silent_cleanup();
35 fbsplash_set_verbose(tty
);
37 fbsplashr_theme_free(theme
);
39 fbsplash_lib_cleanup();