Skip to content

Commit

Permalink
Show small logo and console if bmp splash file missing
Browse files Browse the repository at this point in the history
  • Loading branch information
tiopex committed Dec 29, 2023
1 parent 12a58c3 commit 97d7039
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions drivers/video/cfb_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -1868,15 +1868,16 @@ static void *video_logo(void)
s = env_get("splashimage");
if (s != NULL) {
ret = splash_screen_prepare();
if (ret < 0)
return video_fb_address;
addr = simple_strtoul(s, NULL, 16);

if (video_display_bitmap(addr,
if (ret == 0) {
addr = simple_strtoul(s, NULL, 16);
if (video_display_bitmap(addr,
video_logo_xpos,
video_logo_ypos) == 0) {
video_logo_height = 0;
return ((void *) (video_fb_address));
video_logo_height = 0;
return ((void *) (video_fb_address));
}
} else {
env_set("silent", "");
}
}
#endif /* CONFIG_SPLASH_SCREEN */
Expand Down

0 comments on commit 97d7039

Please sign in to comment.