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 4355f80
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions drivers/video/cfb_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -1868,16 +1868,17 @@ 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 4355f80

Please sign in to comment.